kevinkhan
09-14-2011, 10:00 PM
Why dont i get an echo of 10 for this code
function test() {
$test = 10;
//echo "inside function echo " . $test;
global $test;
}
test();
echo $test;
exit;
function test() {
$test = 10;
//echo "inside function echo " . $test;
global $test;
}
test();
echo $test;
exit;