[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Mime Type: application/x-www-urlencoded 4 * @author Nathan Good <[email protected]> 5 */ 6 7 namespace Httpful\Handlers; 8 9 class FormHandler extends MimeHandlerAdapter 10 { 11 /** 12 * @param string $body 13 * @return mixed 14 */ 15 public function parse($body) 16 { 17 $parsed = array(); 18 parse_str($body, $parsed); 19 return $parsed; 20 } 21 22 /** 23 * @param mixed $payload 24 * @return string 25 */ 26 public function serialize($payload) 27 { 28 return http_build_query($payload, null, '&'); 29 } 30 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |