PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
$page = <<<EOD
// HTML stuff
// HTML stuff
// *** PHP includes, how can I adapt this PHP code for it to work?
// HTML stuff
// HTML stuff
// atempted to do '.include("file.php"). without success for example.
// HTML stuff
// HTML stuff
EOD;
?>
The $page variables are only available to the functions they are defined within, correct? I presume this is why there can be two exact case sensitive matching instances of the same variable on the same page?
The word "page" really don't not have an single meaning in PHP. You can have two separate variables with the same name in different scopes, classes, etc.
You have two $page variables within your two functions (those are referred to as "local scope" since they're local to that function only). You also have a $page variable in the "global scope" (outside of any function or class).