I am trying to pass a JSON response from an external API to a class in a different file. Somehow it's not storing in the class. I've tried var_dumping the class like this:
$user->country_ip = $country_ip;
die(var_dump($user->country_ip));
It somehow doesn't work. But, when I try to vardump the actual variable like this:
die(var_dump($country_ip));
Then it does work, so the variable is fine. I'm very confused, does anyone have an answer to this? It's midnight here, it might be something small?
country_ip?