, :
$arr = array(2,3,4,5,6);
mul($arr);
:
Warning: array_reduce(): The second argument, '*', should be a valid callback in /home/azanar/Documents/Projects/testbed/test.php on line 6
The other two answers here are well suited for a workflow solution. However, as a rule, it is a good habit when you are wondering if something is allowed in a particular language, just try and see what happens. You may be surprised at what some languages allow, and if they do not, they will almost always give you some meaningful error message.
source
share