To::__callStatic()
Calls the virtual method that has been created.
Table of Contents
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 definedTo::HTML()
Decodes HTML special characters.
To::JSON()
Encodes data to JSON string.
To::URL()
Converts private file path to public URL, or decodes URL special characters.
To::_()
Creates a virtual method.
To::__callStatic()
Calls the virtual method that has been created.
To::base64()
Encodes to Base64 string.
To::camel()
Converts current value to camel case.
To::entity()
Converts characters to their corresponding HTML entities.
To::file()
Converts current value to a safe file name.
To::folder()
Converts current value to a safe folder name.
To::kebab()
Converts current value to kebab/slug case.
To::lower()
Converts current value to lower case.
To::pascal()
Converts current value to pascal case.
To::path()
Converts public URL to private file path.
To::query()
Converts PHP array to URL query string.
To::serial()
Serializes data.
To::snake()
Converts current value to snake case.
To::text()
Converts current value to plain text.
To::upper()
Converts current value to upper case.