URL
in package
Table of Contents
Methods
- exists() : bool
- Does a URL "exist"?
- fromPath() : string
Methods
exists()
Does a URL "exist"?
public
static exists(string $url) : bool
We're going to treat any response code < 400 as existing.
Parameters
- $url : string
Tags
Return values
boolfromPath()
public
static fromPath(string $path[, string|null $base = null ][, string $separator = DIRECTORY_SEPARATOR ]) : string
Parameters
- $path : string
- $base : string|null = null
- $separator : string = DIRECTORY_SEPARATOR