[aklug] PHP variable contexts

From: Christopher Howard <choward@indicium.us>
Date: Thu Jun 04 2009 - 16:36:41 AKDT

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just wanted to double check:

PHP uses implicit conversion, right? Say, for instance, if I have a PHP
string variable

$var1 = '003';

can/should I compare it numerically, like so?:

if($var1 > 2)
  destroy(World);

- From what I've read, this would be okay since $var1 is a numeric string,
but I thought I should get some other perspectives.

- --
Christopher Howard
http://indicium.us
http://theologia.indicium.us

I digitally sign /all/ of my e-mails via PGP. If you receive any e-mail
from me without my valid PGP signature, please take additional steps to
verify the authenticity of the message.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkooaJkACgkQQ5FLNdi0BcXT4QCeOQNfW9JHuVhyOKij6fJMOP88
SqEAnRcemm9Rqfv3T4ttRGh4uRdcvgH5
=YHMs
-----END PGP SIGNATURE-----
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Thu Jun 4 16:36:57 2009

This archive was generated by hypermail 2.1.8 : Thu Jun 04 2009 - 16:36:57 AKDT