1. Go to this page and download the library: Download fleshgrinder/value library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fleshgrinder / value example snippets
use Fleshgrinder\Core\Value;
$closed_resource = tmpfile();
fclose($closed_resource);
$values = [
[],
true,
1.0,
1,
null,
new stdClass,
new DateTimeImmutable,
tmpfile(),
$closed_resource,
'string'
];
foreach ($values as $value) {
echo Value::getType($value) , "\n";
}