update : 2015.11.03
php.shukuma.com검색:
|
mb_ereg_replace_callback(PHP 5 >= 5.4.1) mb_ereg_replace_callback — Perform a regular expresssion seach and replace with multibyte support using a callback 설명
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
인수
반환값
The resultant string on success, or 주의
예제
Example #1 mb_ereg_replace_callback() example
<?php 위 예제의 출력: 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 참고
|