RE: [PHP] Variables From: Maxim Maletsky (maxim <email protected>)
Date: 07/10/01

if ($text1 == $text2) {
        True;
}
else {
        False;
}

THIS MUST WORK.

Sincerely,

 Maxim Maletsky
 Founder, Chief Developer
 PHPBeginner.com (Where PHP Begins)
 maxim <email protected>
 www.phpbeginner.com

-----Original Message-----
From: James Bartlett [mailto:zotud <email protected>]
Sent: Wednesday, July 11, 2001 11:13 AM
To: php-general <email protected>
Subject: [PHP] Variables

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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>