PHP code example of ph-7 / datatype
1. Go to this page and download the library: Download ph-7/datatype 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/ */
ph-7 / datatype example snippets
use PH7\Datatype\Type;
$id = settype($_GET['id'], Type::STRING);
$name = settype($inputName, Type::STRING);