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().


Sites of interest: Web Hosting : Reseller Hosting : Website Hosting : HTML Editor : Web Design Templates : Free Web Hosting : ASP code examples : PHP & MySQL Code Examples
  Copyright 2004 Evrsoft Developer Network. Privacy policy - Link to Us

Contact Evrsoft