Shawn McKenzie schreef:
> tedd wrote:
>> At 9:56 AM +0100 2/16/09, Jochem Maas wrote:
>>> for any reasonable number of items my tests show tedd's version
>>> pisses on McKenzies from a great height (note that I actually
>>> optimized Mckenzies variant by halfing the number of calls to
>>> strtotime
At 9:45 AM -0600 2/16/09, Shawn McKenzie wrote:
tedd wrote:
At 9:56 AM +0100 2/16/09, Jochem Maas wrote:
for any reasonable number of items my tests show tedd's version
pisses on McKenzies from a great height (note that I actually
optimized Mckenzies variant by halfing the number of calls t
tedd wrote:
> At 9:56 AM +0100 2/16/09, Jochem Maas wrote:
>> for any reasonable number of items my tests show tedd's version
>> pisses on McKenzies from a great height (note that I actually
>> optimized Mckenzies variant by halfing the number of calls to
>> strtotime()).
>
> ROTFLOL. <-- I seld
At 9:56 AM +0100 2/16/09, Jochem Maas wrote:
for any reasonable number of items my tests show tedd's version
pisses on McKenzies from a great height (note that I actually
optimized Mckenzies variant by halfing the number of calls to
strtotime()).
ROTFLOL. <-- I seldom say that!
From a great
Remember we have copy-on-write in PHP.
Beat this :P :
Tim-Hinnerk Heuer
http://www.ihostnz.com
Fred Allen - "California is a fine place to live - if you happen to be an
orange."
2009/2/16 Jochem Maas
> Shawn McKenzie schreef:
> > Shawn McKenzie wrote:
>
> ...
>
> >>> Not tested:
>
> no shit
Shawn McKenzie schreef:
> Shawn McKenzie wrote:
...
>>> Not tested:
no shit.
>>> function time_sort($a, $b)
>>> {
>>> if (strtotime($a) == strtotime($b)) {
>>> return 0;
>>> }
>>> return (strtotime($a) < strtotime($b) ? -1 : 1;
>>> }
>>>
>>> usort($time, "time_sort");
>>>
>>
Shawn McKenzie wrote:
> Shawn McKenzie wrote:
>> tedd wrote:
>>> Hi gang:
>>>
>>> Anyone have/know a routine that will sort an array of times?
>>>
>>> For example, a function that would take an array like this:
>>>
>>> time[0] ~ '1:30pm'
>>> time[1] ~ '7:30am'
>>> time[2] ~ '12:30pm'
>>>
>>> and or
7 matches
Mail list logo