Jump to content

what does "->" mean


krusmal

Recommended Posts

Hi,

 

I am new to PHP and am trying my hands on Object Oriented PHP. I need a little help on the symbol ->

 

I know how to use -> symbol. But I have seen some typical examples of it which I dont understand. Please check the following example and somebody tell me what actually it all means and what class structure it is used for:

 

Example::instance()->foo()->bar()->get()->something();

 

 

Please tell me the meaning of the multiple -> symbols in a single statement. I hope it is not a silly question.  :wtf:

 

Link to comment
https://forums.phpfreaks.com/topic/183033-what-does-mean/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.