Lester Caine wrote on 16/09/2015 13:37:

Since all of my data comes into
PHP as associative arrays, that is the way I handle them, and being SQL
data, NULL IS a valid state for an element.

Sure, and since you've got an array, you can use array_key_exists if you need to.


Some people seem to think there is some advantage in pulling the array into individual elements of a class, and this where I am getting lost since these elements then exist as variables in the class not easy to handle elements of an array? That was the basis of my 'hidden in an array' point ...

They don't become variables, they become properties; you can use property_exists to look for them.

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to