PHP code example of kumatch / purity
1. Go to this page and download the library: Download kumatch/purity 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/ */
kumatch / purity example snippets
use Kumatch\Purity\Purity
$value = null;
$purity = new Purity($value);
$result = $purity->toBlank()->getValue() // returns string ''
// or use static method
$result = Purity::start($value)->toBlank()->getValue()