php - http_build_query not giving valid string -
$requestparams = [ 'aame_uuid' => 'aba627', 'currency' => 'test']; ksort($requestparams); $hashstring = http_build_query($requestparams); var_dump( $hashstring);
gives
string(30) "aame_uuid=aba627¤cy=test"
so why currency transformed ¤cy , how can correct ?
i think problem ¤ html code. http://character-code.com/currency-html-codes.php ¤ gets replaced char.
maybe should add specific seperator &
http_build_query make sure replaced foo.php?aaaa_uid=aba627&currency=test
Comments
Post a Comment