diff --git a/reference/pcre/functions/preg-replace-callback.xml b/reference/pcre/functions/preg-replace-callback.xml index 82106d1dd1..7abc47d940 100644 --- a/reference/pcre/functions/preg-replace-callback.xml +++ b/reference/pcre/functions/preg-replace-callback.xml @@ -66,7 +66,7 @@ <function>preg_replace_callback</function> and - <function>create_function</function> + anonymous function \s*\w|', - create_function( - // single quotes are essential here, - // or alternative escape all $ as \$ - '$matches', - 'return strtolower($matches[0]);' - ), + function ($matches) { + return strtolower($matches[0]); + }, $line ); echo $line;