http://php.net/parse_str
On Sat, 8 Sep 2001, Aaron Moore wrote:
> 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]