Click here to Skip to main content
15,914,066 members
Articles / Programming Languages / PHP

4 Pitfalls of PHP's Comparison Operators: When to Use == Versus ===

Rate me:
Please Sign up or sign in to vote.
4.67/5 (3 votes)
17 Sep 2014CPOL2 min read 14.4K   3  
Tips for choosing between '==' (equals or loose comparison) and '===' (identical) operators in php.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer WorxForUs
United States United States
I am a programmer who posts rambling on about java, Android, PHP, or whatever I am motivated to type on my charcoal colored Kinesis Freestyle2 keyboard. Please send +1's, shared links, warm thoughts of encouragement, or emasculating flames of internet fury to my blog. Thanks for reading!

righthandedmonkey.com

Comments and Discussions