Zend\XmlRpc\AbstractValue::getXmlRpcValue
Creates a Value* object, representing a native XML-RPC value A XmlRpcValue object can be created in 3 ways: 1. Autodetecting the native type out of a PHP variable (if $type is not set or equal to Value::AUTO_DETECT_TYPE) 2. By specifying the native type ($type is one of the Value::XMLRPC_TYPE_* constants) 3. From a XML string ($type is set to Value::XML_STRING)
By default the value type is autodetected according to it's PHP type
Signature
public function getXmlRpcValue(mixed
$value,
[Value::constant
$type = self::AUTO_DETECT_TYPE] )
Parameters
$value
— mixed$type
— object
Returns
- AbstractValue