开发者

callback function for php preg_replace_callback not getting called on linux CentOS 5.4

开发者 https://www.devze.com 2023-01-03 05:16 出处:网络
I have used the preg_replace_callback as $string = preg_replace_callback($pattern,\'CreateTemplatesContr开发者_高级运维oller::callbackhandler\',$string );

I have used the preg_replace_callback as

$string = preg_replace_callback($pattern,'CreateTemplatesContr开发者_高级运维oller::callbackhandler',$string );

I have called the callbackhandler function with the class name as this function is a private static function.

Problem is "callbackhandler" function is not getting called.

Please post if any one know the reason for the same. Thanks in Advance


According to http://www.php.net/manual/en/language.pseudo-types.php#language.types.callback

It should be array('CreateTemplatesController', 'callbackhandler')

0

精彩评论

暂无评论...
验证码 换一张
取 消