PHP » GoLang |
login |
register |
about
|
GoLang mb_ereg_replace_callback
request it (367)
GoLang replacement for PHP's mb_ereg_replace_callback
[edit | history]
mb_ereg_replace_callback(PHP 5 >= 5.4.1, PHP 7) mb_ereg_replace_callback — Perform a regular expresssion seach and replace with multibyte support using a callback Description
string mb_ereg_replace_callback
( string
$pattern
, callable $callback
, string $string
[, string $option = "msr"
] )
Scans
The behavior of this function is almost identical to mb_ereg_replace(),
except for the fact that instead of
Parameters
Return Values
The resultant string on success, or Notes
Examples
Example #1 mb_ereg_replace_callback() example
<?php The above example will output: April fools day is 04/01/2003 Last christmas was 12/24/2002
Example #2 mb_ereg_replace_callback() using anonymous function supported in PHP 5.3.0 or later
<?php See Also
|
more
Recently updated
more
Most requested
more
Last requests
|