Well hers teh perl version of the the parser... how do i convert this to php

$tmp = $ENV{'QUERY_STRING'};
@pairs = split(/&/, $tmp);

foreach $item (@pairs) {
 ($key, $content) = split(/=/,$item,2);
 $content =~ tr/+/ /;
 $content =~ s/%(..)/pack("c",hex($1))/ge;
 $fields{$key} = $content;
}



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to