Requests_Transport_fsockopen8b7c:f320:99b9:690f:4595:cd17:293a:c069ormat_get( array $url_parts, array|object $data ): string  Format a URL given GET data   Parameters   $url_parts array Required   $data array|object Required    Data to build query using, see https://secure.php.net/http_build_query      Return string URL with data   Source  File: wp-includes/Requests/Transport/fsockopen.php. View all references  protected static function format_get($url_parts, $data) {
	if (!empty($data)) {
		if (empty($url_parts['query'])) {
			$url_parts['query'] = '';
		}

		$url_parts['query'] .= '&' . http_build_query($data, '', '&');
		$url_parts['query']  = trim($url_parts['query'], '&');
	}
	if (isset($url_parts['path'])) {
		if (isset($url_parts['query'])) {
			$get = $url_parts['path'] . '?' . $url_parts['query'];
		}
		else {
			$get = $url_parts['path'];
		}
	}
	else {
		$get = '/';
	}
	return $get;
}
   Related  Used By    Used By Description      Requests_Transport_fsockopen8b7c:f320:99b9:690f:4595:cd17:293a:c069request() wp-includes/Requests/Transport/fsockopen.php   Perform a request   
  

    
{'path': 'public/docs/wordpress/classes/requests_transport_fsockopen/format_get.html', 'source': 'DevDocs.IO'}