Answer the question
In order to leave comments, you need to log in
How to access the property of an object if it has a similar name?
I unload posts through the API, then I do json_decode, at the output I get a mess of StdObjects and arrays, one of the object properties has the name 'wp:featuredmedia', which contradicts the rule for naming variables (array elements and object properties)
Then how to access it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question