Page 1 of 1

[]

Posted: Mon Aug 18, 2008 12:30 am
by Stela
What does it mean the [] ?

Ex:
$s[0]
$s[$i]

Where can I get a list for this group (like the group of Logical operators, etc).

Thanks

Re: []

Posted: Mon Aug 18, 2008 1:34 am
by califdon
Stela wrote:What does it mean the [] ?

Ex:
$s[0]
$s[$i]

Where can I get a list for this group (like the group of Logical operators, etc).

Thanks
It is the array index. In your example, $s is an array. The first element in the array is $s[0], etc. See the documentation: http://www.w3schools.com/php/php_arrays.asp

I'm not sure what you mean by "a list for this group." If you mean PHP syntax, try:
http://www.w3schools.com/php/php_operators.asp

Re: []

Posted: Mon Aug 18, 2008 1:54 am
by Stela
:oops:

I started to study PHP a few years ago, droped and now I'm continuing, I had forgeted that.

Thanks for the help!