I am trying to grab an object property that has a hashtag in the title. It comments out the rest of the line due to the hashtag.
The current code is:
if ($content->#title == 'News') {
I was thinking that maybe something like if ($content->{#title} == 'News') { would work, but that does not appear to work either. There has to be some way in PHP to access a property of an object with a hashtag on the front of it. How do I do this?