DEV Community

Discussion on: PHP crash course : Conditionals, Loops and Functions

Collapse
 
ramlev profile image
Hasse R. Hansen

the if statement, checking if a string is valid, should always be === since its always same type

Collapse
 
ericchapman profile image
Eric The Coder

Good point I made the change. Thanks for your comment.