Why is '==' not working in PHP?
Posted
by patrick
on Stack Overflow
See other posts from Stack Overflow
or by patrick
Published on 2010-04-24T03:31:26Z
Indexed on
2010/04/24
3:33 UTC
Read the original article
Hit count: 236
php
Both values are '2' but I am not getting a true. Why?
echo $getuser. "<br />";
echo $userurl. "<br />";
if ($getuser == $userurl) {
echo "true <br />";
}
Result
2
2
© Stack Overflow or respective owner