I have a function that accepts an array as an argument, then another function that uses this. In the second function, I have the array created using a variable, but some values should only create an empty array. Do I have to add a check or is there a value that can go inside an array and NOT make a key?
For instance:
array() = no key made
array(null) = key made 0 =>
array('') = key made 0 =>
array(0) = key made 0 => 0
So if I have an array created like array($value). Is there any way to have $value represent nothing? There is an easy enough workaround with a check, but it was curiosity that led me to ask whether this is possible.