Function __global->get_enclosure_details
Definitions
sources/rss2.php
- Get enclosure details from a URL, as efficiently as possible.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $url | URLPATH | No | No | required parameter | N/A | N/A | The (possibly short) URL to get details for |
| &$enclosure_url | URLPATH | Yes | No | required parameter | N/A | N/A | The full URL to get details for |
Returns
- A pair: the length of the data, the mime type
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get enclosure details from a URL, as efficiently as possible.
*
* @param URLPATH $url The (possibly short) URL to get details for
* @param URLPATH $enclosure_url The full URL to get details for
* @return array A pair: the length of the data, the mime type
*/
function get_enclosure_details(string $url, string &$enclosure_url) : array
* Get enclosure details from a URL, as efficiently as possible.
*
* @param URLPATH $url The (possibly short) URL to get details for
* @param URLPATH $enclosure_url The full URL to get details for
* @return array A pair: the length of the data, the mime type
*/
function get_enclosure_details(string $url, string &$enclosure_url) : array

