[SOLVED]=> and ->

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
User avatar
figaro11
Forum Commoner
Posts: 64
Joined: Mon Sep 17, 2007 11:49 pm

[SOLVED]=> and ->

Post by figaro11 »

Is it just me or is there no documentation of these operators. I can't seem to find them anywhere here. But I do think I know what they are for.

The purpose of this post is that I'd like to know if I'm correct on this.

=> is used for array key-value indexing? And -> is used like the dot notation in languages like Java, ActionScript and JavaScript?

Could you maybe link me to the article on these operators, if that's what they even are?
Last edited by figaro11 on Wed Oct 03, 2007 12:58 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

There's nothing to really document. They only have one purpose, and you already know it.
User avatar
figaro11
Forum Commoner
Posts: 64
Joined: Mon Sep 17, 2007 11:49 pm

Post by figaro11 »

feyd wrote:There's nothing to really document. They only have one purpose, and you already know it.
That's all I needed to know. ;) Thank you.
Post Reply