scope and return array( ); problems

From: Date: Wed, 18 Apr 2007 22:33:40 +0000
Subject: scope and return array( ); problems
Groups: php.general 
Request: Send a blank email to php-general+get-253219@lists.php.net to get a copy of this message
hi all, I have this function: function preg_array($pattern, $array, $r_array) { global $match; global $r_array; foreach ($array as $key => $value) {
     if (preg_match($pattern, $value,$match))
     {
       $GA=array_slice($match,1);
       break;
     }
} return array ($GA, $match); }

« previous php.general (#253219) next »