From::JSON()
Decodes JSON string to data.
Table of Contents
Description
From::JSON(?string $value, bool $array = false): mixed;This method decodes JSON string to PHP data so that it can be processed as native array/object data.
Example
$value = From::JSON('{"a":1,"b":2,"c":3,"d":4,"e":5}');
foreach ($value as $k => $v) {
echo $k . ': ' . $v . '<br>';
}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.