| AND OR | string words | *

manual for eregi | search for "eregi"


eregi

(PHP 3, PHP 4 , PHP 5)

eregi -- case insensitive regular expression match

Description

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 1. eregi() example

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

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

Manual © 2001-2008 The PHP Group
© 2008 phparadise | go to the top | search phparadise | generated in 0.025 seconds

25 hits by 16 users in the last 30 minutes.