Reputation: 697
I have an object that has keys with '.' character inside them..
How can I access them properly using just the $var->site.title
Is there a way to do that, sticking to the object method?
Upvotes: 0
Views: 58
Reputation:
Using the variable variables syntax:
$obj->{"site.title"}
Upvotes: 5