Hi,
I have several vars taken from the $_GET array. The values are strings 'null' or 'true' or 'false'. When checking these vars I can't find any match using this code:
//$MyVar = 'null';
if ($MyVar == 'null')
echo 'match'; //doesn't output
if ($MyVar == null)
echo 'match'; //doesn't output
echo $MyVar; //outputs 'null'
//same thing with 'true' or 'false'
How can I check against these values and, furthermore, how can I directly assign the constant NULL from the string 'NULL'?