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