Simple PHP, show String but encoded, affected in URL Parameter

how are you today..?

hi all...

I found something odds, and very tricky..

echo "&currency"; //return ¤cy

echo "&ethnic"; //return ðnic

Why is this happened..? its affected on URL query.

it seemed that the string is encoded ASCII, how to fix it..?

this is the loop.. tried to replace & to & amp ;

foreach($pars as $key => $val) $param .= "&".$key."=".$val;

but its having so many errors...


1 answer

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum