src/WordpressClient.php
private function setXmlrpcType(&$array)
    {
        foreach ($array as $key => $element) {
            if (is_a($element, '\DateTime')) {
                $array[$key] = $element->format("Ymd\TH:i:sO");
                xmlrpc_set_type($array[$key], 'datetime');
            } elseif (is_array($element)) {
                $this->setXmlrpcType($array[$key]);
            }
        }
    }
private function setXmlrpcType(&$array)
    {
        foreach ($array as $key => $element) {
            if (is_a($element, '\DateTime')) {
                $array[$key] = $element->format("Ymd\TH:i:sO");
                xmlrpc_set_type($array[$key], 'datetime');
            } elseif (is_array($element)) {
                $this->setXmlrpcType($array[$key]);
            }
        }
    }
private function setXmlrpcType ( & $ array ) { foreach ( $ array as $ key => $ element ) { if ( is_a ( $ element , '\DateTime' ) ) { $ array [ $ key ] = $ element -> format ( "Ymd\TH:i:sO" ) ; xmlrpc_set_type ( $ array [ $ key ] , 'datetime' ) ; } elseif ( is_array ( $ element ) ) { $ this -> setXmlrpcType ( $ array [ $ key ] ) ; } } }
Set the correct type for each element in an array

@param array $array

@since 2.2
Set the correct type for each element in an array