nusoap_base::serialize_val
serializes PHP values in accordance w/ section 5. Type information is not serialized if $use == 'literal'.
Signature
public function serialize_val(mixed
$val,
[boolean
$name = false,
[boolean
$type = false,
[boolean
$name_ns = false,
[boolean
$type_ns = false,
[boolean
$attributes = false,
[string
$use = 'encoded',
[boolean
$soapval = false]]]]]]] )
Parameters
$val
—
mixed
- The value to serialize
$name
—
boolean
- The name (local part) of the XML element
$type
—
boolean
- The XML schema type (local part) for the element
$name_ns
—
boolean
- The namespace for the name of the XML element
$type_ns
—
boolean
- The namespace for the type of the element
$attributes
—
boolean
- The attributes to serialize as name=>value pairs
$use
—
string
- The WSDL "use" (encoded|literal)
$soapval
—
boolean
- Whether this is called from soapval.
Returns
- string
- The serialized element, possibly with child elements