cry of war Posted July 21, 2007 Share Posted July 21, 2007 i have seen some things that look the same and i was wondering what each does what $something="somethingelse" $something=="somethingelse" $something==="somethingelse" $something='somethingelse' $something=='somethingelse' $something==='somethingelse' (!isset($_POST['something'])) (isset($_POST['something'])) what does each of these do or what are each used to do? I cant really explain what I am asking anybetter sorry Quote Link to comment Share on other sites More sharing options...
AndyB Posted July 21, 2007 Share Posted July 21, 2007 $something = "somethingelse" sets the value of the variable $something to the string something else. $something = 'somethingelse' is exactly the same if ($something == "somethingelse") is a test for equality - with double or single quotes, it's the same === is an absolute equality operator: for example the string "0" is not the same as the number 0 with that kind of check isset is looking to see if the variable something has a value POSTed from a form. ! is not Quote Link to comment Share on other sites More sharing options...
cry of war Posted July 21, 2007 Author Share Posted July 21, 2007 oh ok thank you so much i under stand now 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.