SoapVar クラス
(PHP 5, PHP 7, PHP 8)
はじめに
SOAP サービスが使用する変数やオブジェクトをあらわします。
クラス概要
class SoapVar
{
/* プロパティ */
/* メソッド */
}プロパティ
- enc_name
-
- enc_namens
-
- enc_ns
-
- enc_type
-
- enc_stype
-
- enc_value
-
目次
- SoapVar::__construct — SoapVar コンストラクタ
+add a note
User Contributed Notes 1 note
seth dot johnson at gmail dot com ¶
9 years ago
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
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google