PHP 手冊
上一頁 |  | 下一頁

# 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.

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

上一頁 | 最開頭 | 下一頁
eregi_replace | 上一層 | split