phakebrill Posted November 18, 2007 Share Posted November 18, 2007 Hi everyone, I'm completely new to PHP (and programming), hence me coming to this forum. I have what is probably a really simple "generic" question. What is the difference between: "=" and "==" Thanks in advance and I apologise for the really simple question. Quote Link to comment Share on other sites More sharing options...
flhtc Posted November 18, 2007 Share Posted November 18, 2007 = sets a value == test to see if it is equal to that value $a = "This" if ($a == "This) echo "A = $a"; And, Yes it is paranoia. Quote Link to comment Share on other sites More sharing options...
unidox Posted November 18, 2007 Share Posted November 18, 2007 = sets something like a variable, a == means equal to, like if(1 == 1) { it will output if 1 is equal to 1 Quote Link to comment Share on other sites More sharing options...
phakebrill Posted November 18, 2007 Author Share Posted November 18, 2007 Thanks very much guys. That's cleared that one up for me. I'm a total novice when it comes to programming. To be honest, I could probably benefit from some good tutorials or something. Thanks again! Quote Link to comment Share on other sites More sharing options...
trq Posted November 18, 2007 Share Posted November 18, 2007 There's a link to a good free book in my signature. 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.