This is my code, and when I run this function I get this :Warning: array_push() expects parameter 1 to be array However I define $printed as an array
Warning: array_push() expects parameter 1 to be array
$printed
You need validate whit is_array:
Example
if (is_array($arNumbers)) { $cellid = array_push($arNumbers, 0); }