I have used create_function in my application below.
$callbacks[$delimiter] = create_function('$matches', "return '$delimiter' . strtolower($matches[1]);");
But for PHP 7.2.0, the create_function() is deprecated.
Any idea, how to fix my codes above on PHP 7.2.0.
Thanks for your help,
You should be able to use an Anonymous Function (aka Closure) with a call to the parent scoped
$delimiter
variable, like so: