Click here to Skip to main content
15,881,757 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.2K   3  
Tips for choosing between '==' (equals or loose comparison) and '===' (identical) operators in php.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

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