Hi,
I don’t understand this.
The 4 echoes, all echo the same thing.
“`
<?php
$query_string = array(
“find” => “keyword”,
“tbl” => “links”,
“col” => “keyword”,
“max” => “100”
);
echo http_build_query($query_string); echo ‘<br>’;
echo http_build_query($query_string) . “n”; echo ‘<br>’;
echo http_build_query($query_string, ‘&’); echo ‘<br>’;
echo http_build_query($query_string, ”, ‘&’); echo ‘<br>’;
?>
Q1. So, what’s the use of the latter 3 when the first echo is the simplest ?
Q2. And, what’s the use of adding the “&” on the 4th param as without it the url still contains the & as a separator separating the params ?
““
echo http_build_query($query_string, ‘&’); echo ‘<br>’;
Q3. And, why is the 3rd param here empty ?
““
echo http_build_query($query_string, ”, ‘&’); echo ‘<br>’;
Already checked: