By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,741 Members | 1,832 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,741 IT Pros & Developers. It's quick & easy.

A noob question about operators...

P: n/a
Hey there everyone, I'm new to PHP so please bear with me... basically
looking at some code and I've stumbled upon an operator (at least I
think it's an operator) what does "->" mean in the following statement
$someVariable->somethingElse.

Cheers

DoomedLung

Jan 26 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
'->' is used to access class' variables and methods, see the doc:

http://www.php.net/manual/en/language.oop.php

All the best,

Konstantin

On 26 ., 16:57, "DoomedLung" <doomedl...@googlemail.comwrote:
Hey there everyone, I'm new to PHP so please bear with me... basically
looking at some code and I've stumbled upon an operator (at least I
think it's an operator) what does "->" mean in the following statement
$someVariable->somethingElse.

Cheers

DoomedLung
Jan 26 '07 #2

P: n/a
Cheers dude

Jan 26 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.