Reply to Re: confused on arrays

Your name:

Reply:


Posted by J.O. Aho on 11/04/07 06:37

ja wrote:
>> The brackets are used to access a particular element of an array or a
>> character in a string.

> So the bracket is used only when I need to access whatever is contained in
> the array while parents are used to construct them? Do I have it somewhat
> correct?

No, not only,

assign new values to an array

$array[]='somthing';

which is equal to (using the functions array_push())

array_push($array,'something');


and of course you can access the content on an array by specifying a cell

echo $array[0];

keep in mind that in an array, 0 is the first cell and 1 is the second one.


--

//Aho

[Back to original 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

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