use of deprecated function code example
Example: 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);
};