scope and return array( ); problems

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

 



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);
 }

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux