URL::count()

Counts the number of URL data.

Table of Contents
  1. Description
  2. Example

Description

URL::count(): 6;

This method is a requirement to be able to implement the Countable interface and aims to make the object countable via the count() function. This method is public, so it can also be called as how you would call any public methods in general.

Example

$url = new URL('http://127.0.0.1');

test($url->count()); // Returns `6`
test(count($url)); // Returns `6`

URL::count()

Counts the number of URL data.

URL::current()

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