I have an stdClass Object like this:
stdClass Object ( [key-west] => 1 [disney-land] => 1 )
I am trying to retrieve the value like this:
$objectName->key-west
but the value returned is 0. Why? and How can I retrieve it as 1?
Thanks
echo $objectName->{'key-west'};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With