Developer Forums | About Us | Site Map
Search  
HOME > PHPMANUAL


Sponsors





Web Host
site hosted by netplex
Partners

Online Manuals

eregi

(PHP 3, PHP 4 )

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

Copyright 2004-2024 GrindingGears.com. All rights reserved. Site hosted by NETPLEX