Something
public text v1 · immutable public static function parseHtmlForm($req){
//$req can be html or HttpRequest Object
if($req instanceof HttpRequest) $body = (string) $req->body;
else $body = $req;
$parser =& new HtmlFormParser( $body );
return $parser->parseForms();
}
public static function varsToArray($str){
$arr = array();
parse_str($str, $arr);
return $arr;
}