Hi, how can i use a callback function in preg_replace_callback or set_error_handler; with functions in classes?
e.g:
<?php
class foo{
function bar($x){
return 'world';
}
}
echo preg_replace_callback('/hello/','bar','hello');
?>
What's the right syntax?
Regards,
Steve
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php
