php-developer-list | 2001122
Date: 12/29/01
- Next message: bernd.herbold <email protected>: "[PHP-DEV] Bug #14747 Updated: Return exitcodes to shell ($?)"
- Previous message: Markus Fischer: "Re: [PHP-DEV] [IMPORTANT] wishes for php ..."
- In reply to: Jim Winstead: "[PHP-DEV] Re: is_array_multidimensional"
- Next in thread: Stig Venaas: "Re: [PHP-DEV] Re: is_array_multidimensional"
- Reply: Stig Venaas: "Re: [PHP-DEV] Re: is_array_multidimensional"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 09:06 PM 12/29/2001 +0000, Jim Winstead wrote:
>Derick Rethans <d.rethans <email protected>> wrote:
> > Log:
> > - Added extra parameter to count() that recursively counts elements in an
> > array and added is_array_multidimensional(). (patch by Vlad Bosinceanu
> > <glipy <email protected>>)
>
>do we really want to perpetuate this idea that a multidimensional array
>is special in some way? i often get the feeling that people just don't
>seem to get that what makes an array 'multidimensional' in php is that
>one array contains other arrays, and things like all the array sorting
>functions don't somehow treat them differently.
I agree with Jim. Arrays can contain "things". Things can also be other
arrays. You can have an array which contains two other arrays and four
integers. I don't think we should add these functions because they are
wrong *especially* the is_array_multidimensional().
Of course, if there's a good reason to have them and we're all convinced
that the reasons are good we could add them.
Can you please roll back that patch and open up a discussion with examples
of why this functionality is needed? It might even lead to a different
solution.
Andi
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: bernd.herbold <email protected>: "[PHP-DEV] Bug #14747 Updated: Return exitcodes to shell ($?)"
- Previous message: Markus Fischer: "Re: [PHP-DEV] [IMPORTANT] wishes for php ..."
- In reply to: Jim Winstead: "[PHP-DEV] Re: is_array_multidimensional"
- Next in thread: Stig Venaas: "Re: [PHP-DEV] Re: is_array_multidimensional"
- Reply: Stig Venaas: "Re: [PHP-DEV] Re: is_array_multidimensional"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

