Re: formating numbers & date
| From: | Justin French | Date: | Thu, 05 Dec 2002 02:04:59 +0000 |
| Subject: | Re: formating numbers & date | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127088@lists.php.net to get a copy of this message | ||
on 05/12/02 12:47 PM, Rick Widmer (php3@developersdesk.com) wrote:
> Yes, it is simpler to code, but it also takes almost twice as long to run.
>
> 1000 iterations with strtotime: 0.2296 seconds
> 1000 iterations with substr: 0.1308 seconds
>
> Doesn't matter much if you only do it once, but it can add up in a loop.
very good point :)
Justin French
--------------------
http://Indent.com.au
Web Development &
Graphic Design
--------------------