(PHP 3, PHP 4, PHP 5)
This function is identical to ereg() except that this ignores case distinction when matching alphabetic characters.
Пример 1. eregi() example
<?php$string = 'XYZ';if (eregi('z', $string)) { echo "'$string' contains a 'z' or 'Z'!";}?>
See also ereg(), ereg_replace(), eregi_replace(), stripos(), and stristr().