MB_EREGI(3) 1 MB_EREGI(3)
mb_eregi - Regular expression match ignoring case with multibyte support
SYNOPSIS
int mb_eregi (string $pattern, string $string, [array $regs])
DESCRIPTION
Executes the case insensitive regular expression match with multibyte support.
PARAMETERS
o $pattern
- The regular expression pattern.
o $string
- The string being searched.
o $regs
- Contains a substring of the matched string.
RETURN VALUES
Executes the regular expression match with multibyte support, and returns 1 if matches are found. If the optional $regs parameter was
specified, the function returns the byte length of matched part, and the array$regs will contain the substring of matched string. The func-
tion returns 1 if it matches with the empty string. If no matches are found or an error happens, FALSE will be returned.
NOTES
Note
The internal encoding or the character encoding specified by mb_regex_encoding(3) will be used as the character encoding for this
function.
SEE ALSO
mb_regex_encoding(3), mb_ereg(3).
PHP Documentation Group MB_EREGI(3)