note 86320 added to ref.soap
| From: | admin at localfm dot info | Date: | Mon, 13 Oct 2008 07:01:44 +0000 |
| Subject: | note 86320 added to ref.soap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145305@lists.php.net to get a copy of this message | ||
As you may find, SOAP functions return result of type stdClass, not array. It means that you'll
need to use $row->id instead of $row['id'] which may be inconvenient.
You can cast stdClass to array using this construction:
$data = $soap->getMyData($someParams);
$data = (array)$data;
print $data['field']; // now it works
----
Server IP: 91.189.86.54
Probable Submitter: 92.39.129.3
----
Manual Page -- http://www.php.net/manual/en/ref.soap.php
Edit -- https://master.php.net/note/edit/86320
Del: integrated -- https://master.php.net/note/delete/86320/integrated
Del: useless -- https://master.php.net/note/delete/86320/useless
Del: bad code -- https://master.php.net/note/delete/86320/bad+code
Del: spam -- https://master.php.net/note/delete/86320/spam
Del: non-english -- https://master.php.net/note/delete/86320/non-english
Del: in docs -- https://master.php.net/note/delete/86320/in+docs
Del: other reasons-- https://master.php.net/note/delete/86320
Reject -- https://master.php.net/note/reject/86320
Search -- https://master.php.net/manage/user-notes.php