This is something I actually haven't come across before. I'm calling which is using the word class
in it.
I'm trying to get the JSON object value in PHP like so:
//Deck Class
foreach($json->class as $deckclass){
$userclass = $deckclass->name;
}
However, $json->class
doesn't work as class
is a PHP keyword which can't be used.
How can I work around this?