You are here: Re: Multi dimension arrays « PHP Programming Language « IT news, forums, messages
Re: Multi dimension arrays

Posted by Bent Stigsen on 10/06/21 11:48

Paul F. Johnson wrote:
[snip]
> My main problem though is how to get data out of the array.
>
> For example
>
> echo $event['Event'][$i] . "<br />";
>
> doesn't give anything - even if I have explicity put something into the
> array (for example
>
> $event['Event'][0] = "wibble";
> $event['Event'][1] = "wobble";
> $event['Event'][2] = "fibble";
> $event['Event'][3] = "fobble";
>
> for ($i = 0; $i < 4; ++$i)
> echo $event['Event'][$i] . " ... " . $i . "<br />";
>
> displays nothing other than " ... 0-3")
>
> Is this more likely to be me or the version of php I'm using?

I've tried your example verbatim and output is fine, so I reckon it is
not your code.
I have run the same code on php versions from different major releases
(3.0.17, 4.3.9 and 5.1.2) giving exact same result, so I think it is
safe to say that it is not an issue of php version.

Sorry, I can't really say what your problem is. Perhaps your
braille-display is broken.

/Bent

 

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

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