![]() I had some conditional logic code in PHP that was only supposed to execute if an array contained any values:Ä«ut then I was in a situation where $data may or may not be defined. Consider this JavaScript statement: isTouch document.createTouch undefined I would like to know if we have a similar statement in PHP, not being isset(), but literally checking for an undefi. the differences are they reveal the distinction between empty and null variables. When you work with these, you can't always assume that all properties are defined. isset treats null values as undefined and returns false.Flavor RecommendationsI often work with data arrays in PHP as a way to pass information around or store information in sessions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |