DEV Community

A Look At PHP's isset()

Liam Hammett on June 08, 2019

isset() is one of the most important tools at your disposal to validate data in PHP. Like the name implies, it is designed to verify if a variable ...
Collapse
 
deepakqc profile image
Deepak

Great article. Thanks for sharing such a detailed article on isset. Would like to share another reference written on Isset if useful. Would like to clap for such a useful information. Thanks

Collapse
 
aleksikauppila profile image
Aleksi Kauppila

Very nice in-depth look at isset πŸ‘ ain’t this something though. I wrote about isset and empty just 2 hours after this post πŸ€¦β€β™‚οΈdev.to/aleksikauppila/using-isset-...

Collapse
 
liamhammett profile image
Liam Hammett

Glad you liked it! They're two different takes on the problems though, so they definitely both have their place for people to make up their mind on if/how they use isset and empty.

Personally, I think they still have their place, they just shouldn't be abused.

Collapse
 
jaireina profile image
Jair Reina

Thank you! I hate seeing so many nested IF statements and landed here trying to find a way to clean that up.