URL::__construct()

The constructor.

Table of Contents
  1. Description
  2. Example

Description

URL::__construct(?string $value = null): self;

This method will be called when you instantiate a URL class.

Example

$url = new URL('http://127.0.0.1/article/lorem-ipsum?foo=bar#baz');

URL::__construct()

The constructor.

URL::current()

Returns the full URL address along with its query and hash.