korhan-Ö
11/7/2016 - 12:48 PM

#Function.php

$x = 5; // global scope

function myTest() {
    // using x inside this function will generate an error
    echo "<p>Variable x inside function is: $x</p>";
}
myTest();