Sv: [SMARTY] {if 0101 == 101} TRUE

From: Date: Sat, 18 May 2002 11:11:42 +0000
Subject: Sv: [SMARTY] {if 0101 == 101} TRUE
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4299@lists.php.net to get a copy of this message
> > Från: Pupeno <pupeno@pupeno.com.ar> > Datum: 2002/05/18 Sat AM 07:24:42 CEST > Till: smarty-general@lists.php.net > Ämne: [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 ? That is correct, because a leading zero indicates that the number is using octal format, rather that decimal format. 0101 = 65 in decimal. This is not a Smarty problem/feature, this is the way PHP works. /Anders ------------------------------------------------- WebMail från Tele2 http://www.tele2.se -------------------------------------------------

« previous php.smarty.general (#4299) next »