RE: [SMARTY] {if 0101 == 101} TRUE
| From: | Alan McFarlane | Date: | Sat, 18 May 2002 06:56:30 +0000 |
| Subject: | RE: [SMARTY] {if 0101 == 101} TRUE | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4298@lists.php.net to get a copy of this message | ||
If memory serves me correctly, numbers prefixed with a 0 (zero) and containing only digits 0-7 are
considered by PHP to be octal.
Therefore you would be comparing the values 65 decimal (0101 octal) to 101 decimal which are
obviously different.
--
Alan McFarlane
-----Original Message-----
From: Pupeno [mailto:pupeno@pupeno.com.ar]
Sent: 18 May 2002 06:25
To: smarty-general@lists.php.net
Subject: [SMARTY] {if 0101 == 101} TRUE
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
just that, if I compare 0101 with 101 (numbers, not strings) in smarty, it
says they're diferent, is this right ?
- --
Pupeno: pupeno@pupeno.com.ar
http://www.pupeno.com.ar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE85eWcWhjnmGRO4vQRAlG3AJ9eozfo0SJ4tWviRiOJAbcuCC2FhwCfQZUT
oKfsDW8tCAwogzmgeYluhpw=
=3LGw
-----END PGP SIGNATURE-----
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php