or...

<?php

 $confidential = 0;
 echo "$confidential " . ((string)$confidential == 'yes');

?>

that forces the comparison to be compared as a string. this only has to be
done sometimes, usually php is quite good at determining what you want.


--


Chris Lee
Mediawaveonline.com

em. [EMAIL PROTECTED]

ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120



"Jason Murray" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I came across this:
>
> $confidential = 0;
> echo "$confidential " . ($confidential == "yes");
>
> In which "0 1" was printed.
>
> Is there something I'm missing?
>
> Thanks,
> Jason
>
> --
> Jason Murray
> Developer
> http://www.jwebmedia.com/
> 1 877 525 jWEB
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to