Pass values to function without using parameter in PHP

krsmoorthi
12:05:11
<?php
$test = '25'; // integer value
result();
function result()
{
echo $test; //echo or return
return $result;
}

How can we pass the test variable value to result function without using any parameter?
smo1234
12-06-2011
Returning value from a function is explained here
Please Login to post your reply or start a new topic