![]() |
The mb_eregi() function is an inbuilt function in PHP that performs case-insensitive regular expression matches on a string having multibyte support. If the string pattern is matched, then it will return the string otherwise it will return false. Syntax: mb_eregi( Parameters: The following function has three parameters that are described below.
Return Values: The mb_eregi() function returns a boolean value after executing the case insensitive regular expression. If the function found the pattern in the given string, it will return “true”, otherwise it will return “false”. Program 1: The following program demonstrates the mb_eregi() function. PHP
Output
Pattern found! Program 2: The following program demonstrates the mb_eregi() function. PHP
Output
Match not found! Reference: https://www.php.net/manual/en/function.mb-eregi.php |
Reffered: https://www.geeksforgeeks.org
PHP |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 14 |