PHP Deprecated: Function create_function()
snippet in php

PHP Deprecated: Function create_function()

user6515

//From
create_function( '$caps', "return '$caps';" );

//To
function($caps) {return $caps;}