On Wed, 2004-01-21 at 15:38, Jonathan Pitcher wrote:
> Thanks.  It makes sense now.
> 
> Now I have one more question.  Not to confuse the issue more. :)
> 
> $EA = 0
> 
> if ($EA == "NFH") // would work because the string is converted to an 
> integer and then compared correct ?
> 
> And by using === I tell it to compare type and value ?  If that is true 
> would 0 == "0"?  I know I can run it through a string to integer 
> function which is probably a good idea anyways.

<?php sarcasmOn() ?>

I know of a REALLY simple way to find out... but involves a lot of work.
You would have to create a teeny tiny file and add a teeny tiny amount
of code, something like follows:

test.php:

<?php

echo (0 == "0" ? 'Yaaaaay!' : 'Naaaaaay!');

?>

Crap that's too long, a better bet would be to ask on the list. Much
shorter and quicker response time. And you don't even have to think for
yourself.

<?php sarcasmOff() ?>

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to