Click to See Complete Forum and Search --> : understanding a piece of syntax


aatwo
11-18-2007, 05:35 PM
Hi. Could someone please tell me in english the meaning of this line?


if ($rs = $rss->get($currentLine)){

...
...
...

}

jasonahoule
11-18-2007, 06:40 PM
Nobody can tell you that because we do not know what the $rss object is an instance of or how the get() function was implemented.

aatwo
11-18-2007, 07:24 PM
well really I was just wondering the meaning of the "->" symbol.

NogDog
11-18-2007, 08:05 PM
It is an object hierarchy operator. In this example, it means "call the method 'get()' which is a member of object '$rss'." See www.php.net/class for more info.