Function __global->parse_url
Definitions
sources_custom/phpstub.php
- Parse a URL and return its components.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $url | string | No | No | required parameter | N/A | N/A | The URL to parse |
| $component | integer | No | No | -1 | N/A | N/A | The component to get (-1 get all in an array) |
Returns
- A map of details about the URL (false: URL cannot be parsed) (null: missing component)
- Type: ?~mixed
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Parse a URL and return its components.
*
* @param string $url The URL to parse
* @param integer $component The component to get (-1 get all in an array)
* @return ?~mixed A map of details about the URL (false: URL cannot be parsed) (null: missing component)
*/
function parse_url(string $url, int $component = -1)
* Parse a URL and return its components.
*
* @param string $url The URL to parse
* @param integer $component The component to get (-1 get all in an array)
* @return ?~mixed A map of details about the URL (false: URL cannot be parsed) (null: missing component)
*/
function parse_url(string $url, int $component = -1)

