I am using SOAP to get some data from other service, i get XML and convert and display it with PHP. The thing is sometimes there is no value for it in XML file and i dont know how to display some message like "This thing was not set", instead of that i am just getting notice with Notice: Array to string conversion in \data2.php on line 636 Array
What i tried:
if(isset($claim ['vehicle']['engine-cc']))
echo var_dump($claim ['vehicle']['engine-cc']);
output: array(0) { }
After that i try something like:
if(isset($claim ['vehicle']['engine-cc']))
echo var_dump(isset($claim ['vehicle']['engine-cc']));
Output: bool(true)
So it looks i am doing things bad, can you gimme some advise how can i fix it?
p.s. I know i can stop displaying errors and notices but its not the way how i want to "fix" it