PHP -> Funkcie -> Regulárne výrazy -> eregi
Syntax
int eregi ( string pattern, string string [, array ®s] )
Popis
Príkaz jazyka PHP
Case insensitive regular expression match.
This function is identical to ereg() except that this ignores case distinction when matching alphabetic characters.
Príklad
<?php
$string =
'XYZ';
if (eregi('z',
$string)) {
echo "'$string' contains a 'z' or 'Z'!";
}
?>
Pozri aj
ereg, ereg_replace, eregi_replace, stripos, a stristr