eregi

(PHP 3, PHP 4, PHP 5)

eregi -- Case insensitive regular expression match

Description

int 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
$string
= 'XYZ';
if (
eregi('z', $string)) {
    echo
"'$string' contains a 'z' or 'Z'!";
}
?>

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

F1 Site Family
AJAX F1
CSS F1
Database F1
Forex F1
Flash F1
HTML F1
Java F1
JavaScript F1
PhotoShop F1
PHP F1
Windows F1
 
vpsnoc
 
MaxTutorial
Monthly mortgage payment calculator
WebFormGenerator
Forex mini accounts

Total time: 0.0312