http_build_query?????????????URL?????????
??????:
string http_build_query ( mixed $query_data [, string $numeric_prefix [, string $arg_separator [, int $enc_type = PHP_QUERY_RFC1738 ]]] )
????:
- query_data: ??????????
- numeric_prefix (??): ??????????
- arg_separator (??): ????????,???'&'?
- enc_type (??): URL????,???PHP_QUERY_RFC1738?
??:
$data = https://www.yisu.com/ask/array('name' => 'John', 'age' => 30, 'email' => 'john@example.com' ); $queryString = http_build_query($data); echo $queryString; // ??:name=John&age=30&email=john@example.com
???????,???$data???URL??????????????URL?????,???????????[],?'name[]',????????????????name????