- parse_str: documentation ( source)
- explode: documentation ( source)
- http_build_query: documentation ( source)
<?php
$a = array();
for ($i = 0; $i < 900; $i++)
{
if ($i != 899) $a['asd'.$i] = "$i";
else for ($j = 0; $j < 900; $j++)
$a['asd'.$i]['qwe'.$j] = "$i - $j";
}
$a = http_build_query($a);
parse_str($a,$b);
$b = http_build_query($b);
echo count(explode('&',$a))."\n";
echo count(explode('&',$b))."\n";