[]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Stela
Forum Commoner
Posts: 46
Joined: Tue Aug 12, 2008 12:38 pm

[]

Post 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
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: []

Post 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
Stela
Forum Commoner
Posts: 46
Joined: Tue Aug 12, 2008 12:38 pm

Re: []

Post 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!
Post Reply