I just want to use array_walk() with ceil() to round all elements of the array. But that will not work.
Code:
$numbs = array(3, 5.5, -10.5); array_walk($numbs, "ceil"); print_r($numbs);
output should be: 3.6, -10
Error message:
Warning: ceil () expects exactly 1 parameter, 2 given in line 2
: 3,5,5, -10,5 (Same as before using ceil ())
I also tried with round() .
user4479187
source share