Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 328 Bytes

XmlTypeDecoder.md

File metadata and controls

15 lines (10 loc) · 328 Bytes

XmlTypeDecoder (alias for Jsonx)

<?php

use Chubbyphp\DecodeEncode\Decoder\XmlTypeDecoder;

$decoderType = new XmlTypeDecoder();

echo $decoderType->getContentType();
// 'application/xml'

print_r($decoderType->decode('<json:object><json:string name="name">php</json:string></json:object>'));
// ['name' => 'php']