Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 288 Bytes

UrlEncodedTypeDecoder.md

File metadata and controls

15 lines (10 loc) · 288 Bytes

UrlEncodedTypeDecoder

<?php

use Chubbyphp\DecodeEncode\Decoder\UrlEncodedTypeDecoder;

$decoderType = new UrlEncodedTypeDecoder();

echo $decoderType->getContentType();
// 'application/x-www-form-urlencoded'

print_r($decoderType->decode('name=php'));
// ['name' => 'php']