wsdl::serializeType
serializes a PHP value according a given type definition
Signature
public function serializeType(string
$name,
string
$type,
mixed
$value,
[string
$use = 'encoded',
[boolean
$encodingStyle = false,
[boolean
$unqualified = false]]] )
Parameters
$name
—
string
- name of value (part or element)
$type
—
string
- XML schema type of value (type or element)
$value
—
mixed
- a native PHP value (parameter value)
$use
—
string
- use for part (encoded|literal)
$encodingStyle
—
boolean
- SOAP encoding style for the value (if different than the enclosing style)
$unqualified
—
boolean
- a kludge for what should be XML namespace form handling
Returns
- string
- value serialized as an XML string