Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Function create_function() is deprecated in

//change create_function to anonymous like so:
//change:
$square = create_function('$x', 'return pow($x,2);');
//to:
$square = function($x){
	return pow($x,2);
};
 
PREVIOUS NEXT
Tagged: #Function #deprecated
ADD COMMENT
Topic
Name
2+1 =