RE: [PHP] Variables From: Adrian Ciutureanu (adrian.ciutureanu <email protected>)
Date: 07/11/01

it prints exactly what I expect
didn't you expect that $test1==$test2 returns true?

> -----Original Message-----
> From: Maxim Maletsky [mailto:maxim <email protected>]
> Sent: 11 iulie 2001 10:21
> To: Adrian Ciutureanu; James Bartlett
> Cc: php-general <email protected>
> Subject: RE: [PHP] Variables
>
>
> What's impossible?
>
>
>
> $test1 = 'foo';
> $test2 = 'foo';
>
> echo 'it is ';
>
> if($test1==$test2) {
> echo 'very ';
> }
> else {
> echo 'im';
> }
>
> echo 'possible';
>
>
>
>
> Guess what will this print to you...
>
>
> -Maxim Maletsky
>
>
>
> -----Original Message-----
> From: Adrian Ciutureanu [mailto:adrian.ciutureanu <email protected>]
> Sent: Wednesday, July 11, 2001 3:24 PM
> To: James Bartlett
> Cc: php-general <email protected>
> Subject: RE: [PHP] Variables
>
>
> That's IMPOSIBLE!
>
> > -----Original Message-----
> > From: James Bartlett [mailto:zotud <email protected>]
> > Sent: 11 iulie 2001 05:27
> > To: php-general <email protected>
> > Subject: Re: [PHP] Variables
> >
> >
> > I have tried that also...it still does not want to work...
> > ----- Original Message -----
> > From: Dallas K.
> > To: James Bartlett ; php-general <email protected>
> > Sent: Wednesday, July 11, 2001 5:43 AM
> > Subject: Re: [PHP] Variables
> >
> >
> > don't use the quotes....
> >
> > if($test1 == $test2)
> > { echo "True";
> > }
> > else
> > { echo "False";
> > }
>
> --
> 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>
>
> --
> 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>
>
>

-- 
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>