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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -