Variables
| From: | James Bartlett | Date: | Wed, 11 Jul 2001 02:12:56 +0000 |
| Subject: | Variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-57286@lists.php.net to get a copy of this message | ||
Hi,
This might sound really simple but plz humour me :)
How can I tell if two text variables are equal to one another?
If I use..
if($text1 = $text2)
{
echo "The variables are equal";
}
else
{
echo "The variables are not equal";
}
then the code in the else state is always printed even if I know for a fact that the variables are
equal...
Any suggestions?
James