Re: PHP session variables
| From: | Robert Cummings | Date: | Tue, 14 Aug 2012 15:01:51 +0000 |
| Subject: | Re: PHP session variables | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-318697@lists.php.net to get a copy of this message | ||
On 12-08-14 10:41 AM, Tedd Sperling wrote:
On Aug 13, 2012, at 10:59 AM, Robert Cummings <robert@interjinn.com> wrote:I'm not sure if you're making a joke, but your changes have no effect. You've merely explicitly stated the optional parameter's default value. What I had meant was to change the following: <?php $starttime = microtime(); $startarray = explode(" ", $starttime); $starttime = $startarray[1] + $startarray[0]; ?> To the following :) <?php $starttime = microtime( true ); ?> Cheers, Rob. -- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized.On 12-08-10 04:42 PM, Tedd Sperling wrote:Rob: Fixed. Thanks -- my habits are always in a state of being updated -- just ask my wife.On Aug 10, 2012, at 1:21 PM, Ege Sertçetin <sertcetin@itu.edu.tr> wrote:Ted, Please see the current signature for microtime():Hi. My question will maybe out of topic, I'm sorry. How can you know that one way will be much slower than other one? I mean, how can I learn which function is faster before I test it?Ege: No your question is on topic. This question should be asked on the list, so I'll present Q:A instead of answering privately http://www.webbytedd.com/b/timed1/ The code is there -- if you have questions, please post them to the list.mixed microtime ([ bool $get_as_float = false ] )The optional paramter was added in PHP 5.0.0. I think it's safe to update your habits :) Cheers, Rob.