SubhanUllah Posted October 8, 2022 Report Share Posted October 8, 2022 Two equal signs is a comparison. So: $a=1; Sets $a to 1. Now we can use it to test. If ($a==1) echo ‘A equals 1’; If (!$a!==1) echo ‘A does not equal 1’; You do have other ways of using this: >= check for greater than or equal to !>= not greater than or equal to. And the same for lesser than. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.