Re: FW: [PHP] String 2 Number
| From: | Berthold Tenhumberg | Date: | Wed, 10 Oct 2001 14:36:39 +0000 |
| Subject: | Re: FW: [PHP] String 2 Number | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70672@lists.php.net to get a copy of this message | ||
Hi,
what about $num = (int)$str + 1; ?
I think this is the logical way... ;-)
Am Mittwoch, 10. Oktober 2001 13:50 schrieben Sie:
> I think that $str+=0 is faster than sprintf
--
Berthold
(live long and prosper...)