Accessing y:id in rss feed with php

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

        object(stdClass)#4 (2) {
          string(6) "697085"
          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.


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