eregi

case insensitive regular expression match (PHP 3, PHP 4 )
bool eregi ( string pattern, string string [, array regs] )

This function is identical to ereg() except that this ignores case distinction when matching alphabetic characters.

Example 835. eregi() example

<?php
if (eregi("z", $string)) {
   echo
"'$string' contains a 'z' or 'Z'!";
}
?>

See also ereg(), ereg_replace(), eregi_replace(), stripos(), and stristr().

This HTML Help has been published using the chm2web software.