Re: Associative arrays and case sensitivity
| From: | Tomas V.V.Cox | Date: | Thu, 13 Sep 2001 15:42:36 +0000 |
| Subject: | Re: Associative arrays and case sensitivity | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-1899@lists.php.net to get a copy of this message | ||
On Thursday 13 September 2001 15:40, Edin Kadribasic wrote:
> > > How did you do lowercasing? I'm going to write a new php function
> > > (something like array_lowercase_keys) and would like to compare
> > > the results.
> >
[...]
>
> Ok, I did some testing and here are the results:
>
> test1.php 13.16 sec (no modification)
> test2.php 23.63 sec (php userspace modification)
> test3.php 13.97 sec (using array_lowercase_keys())
>
> As you can see using the proposed function, the performance loss is
> very small. I did it in a loop because the response was too quick for
> good testing result. The table in question has 10087 records.
>
Wonderful :-) With that, the implementation of a column lowercasing
function make much more sense. Hope this (or something similar) could
get into the main php distrib.
Tomas V.V.Cox