object(stdClass)#5 (1) {
["Record"]=> object(stdClass)#6 (3) {
["EmployeeId"]=> int(2637944)
["BioInfo"]=> object(stdClass)#7 (2) {
["FirstName"]=> string(6) "Aprony"
["LastName"]=> string(1) "!"
}
["GroupId"]=> array(38) {
[0]=> int(2601)
[1]=> int(2661)
[2]=> int(2663)
[3]=> int(3481)
[4]=> int(3602)
}
}
}
I'm new to PHP and I have made a SOAP request to some service and my result are see above. My goal is to eventually store EmployeeId
, FirstName
, LastName
and the GroupId
s in a MYSQL table.
I have tried to so something like:
foreach ($response->{'Record'} as $obj){
//$line = $obj->{'ConsId'}."\t".$obj->{'ConsName'}->{'FirstName'}."\t".$obj->{'ConsName'}->{'LastName'};
//echo $line."<br>";
}