Error: Depreciated
if( preg_match('/([^:]+): (.+)/m', $field, $match) ) {
$match[1] = preg_replace_callback('/(?<=^|[\x09\x20\x2D])./e', 'strtoupper("\0")', strtolower(trim($match[1])));
How to use preg_replace_callback instead of preg_replace ? I tried to replace the preg_replace and got another error.
PHP Warning: preg_replace_callback(): Requires argument 2, 'strtoupper("\0")', to be a valid callback in