From::entity()
Converts HTML entities to their corresponding characters.
Table of Contents
Description
From::entity(?string $value): ?string;This method converts HTML entities to their corresponding characters.
Example
$value = From::entity('I ❤ U'); // Returns `'I ❤ U'`
$value = From::entity('I ❤ U'); // Returns `'I ❤ U'`From::HTML()
Encodes HTML special characters.
From::JSON()
Decodes JSON string to data.
From::URL()
Encodes URL special characters.
From::_()
Creates a virtual method.
From::__callStatic()
Calls the virtual method that has been created.
From::base64()
Decodes Base64 string.
From::entity()
Converts HTML entities to their corresponding characters.
From::query()
Converts URL query string to PHP array.
From::serial()
Unserializes data.