I'm a completely beginner at PHP
and I tried searching for the solution to this but I can't seem to find it.
Whenever I try to use http_build_query()
on my array, it turns the $note
variable into a symbol (¬e). I was just wondering if there is any way I can still use note without changing the variable name.
Ex.
<?php
$vars = array(
'book' => 'humpty',
'newspaper' => 'onion',
'note' => 'not working');
$query = http_build_query($vars);
echo $query;
?>
The expected output is: book=humpty&newspaper=onion¬e=not+working
The actual output is: book=humpty&newspaper=onion¬e=not+working
Thank you.