Function create_function() is deprecated in
snippet in php

PHP Deprecated: Function create_function()

user4973

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

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

Function create_function() is deprecated in

user5013

//change create_function to anonymous like so:
//change:
$square = create_function('$x', 'return pow($x,2);');
//to:
$square = function($x){
	return pow($x,2);
};