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

Posted by user105165 on Stack Overflow See other posts from Stack Overflow or by user105165
Published on 2010-06-08T15:07:34Z Indexed on 2010/06/08 15:12 UTC
Read the original article Hit count: 190

Filed under:
|

I have used the preg_replace_callback as

$string = preg_replace_callback($pattern,'CreateTemplatesController::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

© Stack Overflow or respective owner

Related posts about function

Related posts about callback