getting a variable from a function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As against 'global', is there anyway to get a variable from wthin a function (besides 'returning it using  'return').
for example, how do i get the value of the variable $c in the function below:
 
function Dis() {
$a = arry('foo', 'bar');
foreach ($a as $v) {
echo $v;
}
$c = count($a);
}



---------------------------------

A passion till tomorrow,
Opeyemi Obembe | ng.clawz.com





		
---------------------------------
Yahoo! Mail
 Stay connected, organized, and protected. Take the tour

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux