(PHP 4, PHP 5)
eregi — 锟斤拷锟斤拷锟街达拷小写锟斤拷锟斤拷锟斤拷锟斤拷式匹锟斤拷
$pattern
, string $string
[, array &$regs
] ) : int锟斤拷锟斤拷锟斤拷锟斤拷 ereg() 锟斤拷全锟斤拷同锟斤拷只锟斤拷锟斤拷锟斤拷匹锟斤拷锟斤拷母锟街凤拷时锟斤拷锟皆达拷小写锟斤拷锟斤拷锟斤拷
Example #1 eregi() 锟斤拷锟斤拷
<?php
$string = 'XYZ';
if (eregi('z', $string)) {
echo "'$string' contains a 'z' or 'Z'!";
}
?>
锟轿硷拷 ereg()锟斤拷ereg_replace()锟斤拷eregi_replace()锟斤拷stripos() 锟斤拷 stristr()锟斤拷