php - Trying to understand print_r() return -
i have variable defined :
$result = $soap_client->companycodegetlist($params);
print_r($results);
please can 1 help me understand homecoming of print_r($results) ?
stdclass object ( [companycodelist] => stdclass object ( [item] => array ( [0] => stdclass object ( [compcode] => 0001 [compname] => sap a.g. ) [1] => stdclass object ( [compcode] => 01 [compname] => debussy ) [2] => stdclass object ( [compcode] => 02 [compname] => ravel ) any help appreciated i'm confused...
$results object companycodlist property object item property array....
try
echo "<pre>"; print_r($results); echo "</pre>"; to more intelligibly formatted results.
php soap return
No comments:
Post a Comment