To::__callStatic()

Calls the virtual method that has been created.

Table of Contents
  1. Description
  2. Example

Description

To::__callStatic(string $kin, array $lot = []): mixed;

This method will pass the original input value as-is if the virtual method being called is not yet defined.

Example

echo To::RGB('#ffc0cb'); // Returns `#ffc0cb` because method `To::RGB()` is not yet defined

To::URL()

Converts private file path to public URL, or decodes URL special characters.

To::__callStatic()

Calls the virtual method that has been created.

To::entity()

Converts characters to their corresponding HTML entities.

To::file()

Converts current value to a safe file name.

To::path()

Converts public URL to private file path.