Function __global->mark_if_url_exists
Definitions
sources/urls2.php
- Mark if a URL exists.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $url | URLPATH | No | No | required parameter | N/A | N/A | The URL |
| $exists | boolean | No | No | True | N/A | N/A | Whether it exists |
| $message | string | No | No | Blank (empty string) | N/A | N/A | HTTP response code (blank: unknown) |
| $destination_url | URLPATH | No | No | Blank (empty string) | N/A | N/A | Destination URL (blank: unknown) |
Preview
Code (PHP)
/**
* Mark if a URL exists.
*
* @param URLPATH $url The URL
* @param boolean $exists Whether it exists
* @param string $message HTTP response code (blank: unknown)
* @param URLPATH $destination_url Destination URL (blank: unknown)
*/
function mark_if_url_exists(string $url, bool $exists = true, string $message = '', string $destination_url = '')
* Mark if a URL exists.
*
* @param URLPATH $url The URL
* @param boolean $exists Whether it exists
* @param string $message HTTP response code (blank: unknown)
* @param URLPATH $destination_url Destination URL (blank: unknown)
*/
function mark_if_url_exists(string $url, bool $exists = true, string $message = '', string $destination_url = '')

