Accessing y:id in rss feed with php

I am reading a rss feed in json format. One of the tags reads:


        ["y:id"]=>
        object(stdClass)#4 (2) {
          ["value"]=>
          string(6) "697085"
          ["permalink"]=>
          string(5) "false"
        }

Is y:id accessible? If so how do I call it to get the value field? Normally I loop through the items and if it was just id I would say feed_source->id but its y:id. Sorry if this sounds stupid, I never came across this before.

You’re having trouble since y:id is not a valid property name, no worries we can use the syntax for variable property names.


$feed_source->{"y:id"}

Great! Works like a charm, thank you very much.