so i am using an API whose return is protected members. My code :-
var_dump($a)
Gets me something like this :-
array (size=1)
0 =>
object(Klarna\XMLRPC\Address)[26]
protected 'email' => string '' (length=0)
protected 'telno' => string '' (length=0)
protected 'cellno' => string '' (length=0)
protected 'fname' => string 'Testperson-se' (length=13)
protected 'lname' => string 'Approved' (length=8)
How can I access the protected members?
I tried to do it via :- var_dump($addrs->country)
but it doesn't work.