PHP Array counting null row -
tthe array count "false"/null row key, when returns "null" array, counts key 0. how can make doesn't count when value null?
[...] 'scripts' => array( ($variable ? $object->dostuff(...) : null), [...]
run through array_filter
first, it'll empty values 0 or null.
Comments
Post a Comment