You are here: Re: Returning a 2 dimensional array « PHP Programming Language « IT news, forums, messages
Re: Returning a 2 dimensional array

Posted by Parrot on 11/03/05 21:58

I definitely created a 2D array, I tested it within the function.

Your example doesn't give an example of creating a 2D array and I
don't see any variable names in your return statement. Could you
please expand on that?

On Thu, 03 Nov 2005 14:48:19 -0500, JDS <jeffrey@example.invalid>
wrote:

>On Thu, 03 Nov 2005 12:10:55 -0500, Parrot wrote:
>
>> Is there something different I need to do in order to return a 2
>> dimensional array from a function?
>
>Yes. Create a 2-D array inside the function. Return it.
>
>As simple as this:
>
>function get_2d_array(){
> return array(array());
>}
>
>Maybe your function is not *creating* a 2D array?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация