When evaluating logical operators, put the constant on the left so you have no chance of forgetting that extra =. For example:
if (5 == $id)
Think about it; it’s very logical and if it even saves you a single bug in your code it’s worth it.
2 thoughts on “Programming tip of the day”
blah blah blah computer blah blah blah internet blah blah blah
wait… you lost me at “name and email address”..
Simple and not important tip hhhh , anyway thank you matt 🙂