Pieter wrote:
I recently started coding online and i have the weirdest response, my code is:

<?php

include 'function.inc';

echo "$id<br>";

print (gettype($id));

if ($id = "add" )

{

echo "is add";

exit;

}
<snip>

'=' sets value. '==' checks equality.

http://www.php.net/manual/en/language.operators.comparison.php

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to