![]() |
The mb_eregi_replace() is an inbuilt function in PHP that is used to perform the replacement of regular expression characters. It is a case-insensitive regular expression search and replace with multi-byte character support. Syntax: mb_eregi_replace( string $pattern, string $replacement, string $string, ?string $options = null ): string|false|null Parameters: This function accepts four parameters that are described below:
Return Value: This function returns the resultant string, in case of not getting an error, otherwise return false. Also, null will be returned in the case when the string is not valid for the current encoding. Example 1: The following program demonstrates the mb_eregi_replace() function. PHP
Output: TFT Example 2: The following program demonstrates the mb_eregi_replace() function. PHP
Output: water work word Reference: https://www.php.net/manual/en/function.mb-eregi-replace.php |
Reffered: https://www.geeksforgeeks.org
PHP |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 15 |