preg_replace_callback

preg_replace_callback -- Perform a regular expression search and replace using a callback

Description

mixed preg_replace_callback ( mixed pattern, mixed callback, mixed subject [, int limit])

This function was added in PHP 4.0.5 .