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 Link to comment https://forums.phpfreaks.com/topic/61135-solved-help-understanding-a-few-things/ 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 Link to comment https://forums.phpfreaks.com/topic/61135-solved-help-understanding-a-few-things/#findComment-304234 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 Link to comment https://forums.phpfreaks.com/topic/61135-solved-help-understanding-a-few-things/#findComment-304237 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.