Function __global->_image_path_to_url
Definitions
sources/images2.php
- Convert an image path to a URL, as convert_image returns a URL not a path.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $to_path | PATH | No | No | required parameter | N/A | N/A | Path |
Returns
- URL
- Type: URLPATH
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Convert an image path to a URL, as convert_image returns a URL not a path.
*
* @param PATH $to_path Path
* @return URLPATH URL
*/
function _image_path_to_url(string $to_path) : string
* Convert an image path to a URL, as convert_image returns a URL not a path.
*
* @param PATH $to_path Path
* @return URLPATH URL
*/
function _image_path_to_url(string $to_path) : string

