|
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
Navigation:
[Reply to this message]
|