Scope surprises in PHP: The joy of debugging Scope is the variable and function visibility that a certain portion of the program has. For example, let’s say that we declare a variable inside of a function. Other functions will not have access to that variable. <?php function hello() { $name = “Dino”; echo “Hello ” . $name; // has access } function bye() { echo “Bye ” . $name; // Doesn’t have access } That variable ($name) has local scope to the function where it was created. Variables can have global scope and be accessed anywhere (not always immediately). Those