Ani Menon
0
Q:

Function create_function() is deprecated in

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

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

New to Communities?

Join the community