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/04/05 18:31

On 4 Nov 2005 06:18:00 -0800, "Chung Leong"
<chernyshevsky@hotmail.com> wrote:

>That's the result from the following:
>
>1: function test()
>2:{
>3: $array[0][0] = "Hello";
>4: $array[0][1] = "World";
>5: $array[1][0] = "How Are";
>6: $array[1][1] = "You?";
>7: return array($array);
>8:}
>
>The function I gave you was:
>
>1: function test()
>2:{
>3: $array[0][0] = "Hello";
>4: $array[0][1] = "World";
>5: $array[1][0] = "How Are";
>6: $array[1][1] = "You?";
>7: return $array;
>8:}
>
>Note the difference at line 7.

Ah yes, I forgot that I added that... I was trying to follow JDS'
advice.

Okay, that works... but now that leaves the question of why didn't my
original code work?

 

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

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