I'm reading your book beginning php and mysql , and I find an error. In chapter 3, page 111:
For instance, if require() is placed within an
if statement that evaluates to false, the file would be included anyway.
But I test this with my code. It's not true. b.php
<?php
if(false)
{
require "a.php";
}
?>
a.php
<?php
echo "this is a.php<br>"
?>
I run the b.php. Nothing is on the page.
My php version is 5.4.7. So does the book say wrong?