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

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

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