Example #1
0
 public static function buscarArray2($array, $key, $value)
 {
     $results = array();
     if (is_array($array)) {
         if (isset($array[$key])) {
             if ($array[$key] == $value) {
                 $results[] = $array;
             }
         }
         foreach ($array as $subarray) {
             $results = array_merge($results, Sys::buscarArray2($subarray, $key, $value));
         }
     }
     return $results;
 }