$hay ) { $type = strtolower( gettype( $hay )); if( $type == "string" ) { if( iconv( "ISO-8859-1", "UTF-8", stripos( strtolower( $hay ), $needle ) ) !== "" ) { $matches[] = $hay; } } else if ( $type == "array" ) { foreach( $hay as $key => $subhay ) { $type = strtolower( gettype( $subhay )); if ( $type == "array" ) { foreach( $subhay as $key => $subsubhay ) { if( iconv("ISO-8859-1", "UTF-8", stripos( strtolower( $subsubhay ), $needle ) ) !== "" ) { $matches[] = $hay; } } } else { if( iconv("ISO-8859-1", "UTF-8", stripos( strtolower( $subhay ), $needle ) ) !== "" ) { $matches[] = $hay; } } } } } if( sizeof( $matches ) > 0 ) { $matches = array_map("unserialize", array_unique(array_map("serialize", $matches))); } ?>

Search Results