note 116766 added to class.soapvar
| From: | seth dot johnson at gmail dot com | Date: | Wed, 25 Feb 2015 00:09:53 +0000 |
| Subject: | note 116766 added to class.soapvar | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-201803@lists.php.net to get a copy of this message | ||
It is not documented and thus may be subject to change but if you need to inspect the constructed
SoapVar it sets everything you pass it on public variables:
<?php
$foo = new \stdClass();
$foosoap = new \SoapVar($foo, SOAP_ENC_OBJECT, 'Foo');
var_dump($foosoap);
echo $foosoap->enc_stype;
echo get_class($foosoap->enc_value);
?>
Will output (tested in PHP 5.3.3 cli):
object(SoapVar)#2 (3) {
["enc_type"]=>
int(301)
["enc_value"]=>
object(stdClass)#1 (0) {
}
["enc_stype"]=>
string(3) "Foo"
}
Foo
stdClass
----
Server IP: 72.52.91.14
Probable Submitter: 98.173.37.130
----
Manual Page -- http://php.net/manual/en/class.soapvar.php
Edit -- https://master.php.net/note/edit/116766
Del: integrated -- https://master.php.net/note/delete/116766/integrated
Del: useless -- https://master.php.net/note/delete/116766/useless
Del: bad code -- https://master.php.net/note/delete/116766/bad+code
Del: spam -- https://master.php.net/note/delete/116766/spam
Del: non-english -- https://master.php.net/note/delete/116766/non-english
Del: in docs -- https://master.php.net/note/delete/116766/in+docs
Del: other reasons-- https://master.php.net/note/delete/116766
Reject -- https://master.php.net/note/reject/116766
Search -- https://master.php.net/manage/user-notes.php