Re: array_change_key_case() warning...
| From: | Maxim Maletsky | Date: | Thu, 07 Nov 2002 19:02:31 +0000 |
| Subject: | Re: array_change_key_case() warning... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123209@lists.php.net to get a copy of this message | ||
Are you sure you don't have something different from strings and
integers in one of your keys?
Anyway, you can still quiet the error up by prepeding the function with
an at-mark:
$myArray = @array_change_key_case($result,CASE_UPPER);
--
Maxim Maletsky
maxim@php.net
"R B" <rbphp@hotmail.com> wrote... :
> Hello,
>
> I'm using array_change_key_case to return an array with all string keys
> uppercased.
>
> ex:
>
> $myArray = array_change_key_case($result,CASE_UPPER);
>
> If i have the display_errors = on and error_reporting = E_ALL in my
> php.ini then i get the warning:
>
> "Warning: Wrong datatype in array_change_key_case() call in....."
>
> How can i fix this warning?
>
> Thanks,
>
> RB
>
> _________________________________________________________________
> MSN Fotos: la forma más fácil de compartir e imprimir fotos.
> http://photos.msn.es/support/worldwide.aspx
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>