How does PHP treat different values in a Boolean context?
How does PHP handle true/false comparison internally? I understand that true is defined as 1 and false is defined as 0. When I do if ("a") { echo "true";}, it echos "true". How does PHP recognize "a" as 1?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.