You are here: Re: multidimensional array declaration in php « PHP Programming Language « IT news, forums, messages
Re: multidimensional array declaration in php

Posted by Jerry Stuckle on 07/15/06 13:05

vito wrote:
>> $a[$i] = array();
>
> Is the above declaration legitimate?
>

as long as $a is defined as an array, yes.

> Furthermore,
> $array[$i][1] = $array[$i][1] . $line;
>
> PHP Notice: Undefined offset: 2700 in array.php on line 16
>
>

Looks like $i contains 2700. Have you initialized this element?


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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