http_build_query

Supported Versions: PHP 5, PHP 7, PHP 8
Generate URL-encoded query string
<?php http_build_query(    array|object $data,    string $numeric_prefix = "",    ?string $arg_separator = null,    int $encoding_type = PHP_QUERY_RFC1738): string