- var_dump: documentation ( source)
- parse_str: documentation ( source)
<?php
$str = 'POST /collect HTTP/1.1
Host: ssl.google-analytics.com
Connection: close
Accept-encoding: gzip, deflate
User-Agent: Zend_Http_Client
X-NewRelic-ID: UA8DU1FbGwAGUVRQAgY=
X-NewRelic-Transaction: PxQAB1VXDAUJVFQBUggAVVZXFB8EBw8RVT8=
Content-Type: application/x-www-form-urlencoded
Content-Length: 91
t=transaction&ti=61846&ta=&tr=56&ts=0&tt=5&cu=EUR&uid=3908182&v=1&tid=UA-51823361-1&cid=555
';
var_dump(parse_str($str));