PHP code example of new-inventor / php-type-checker
1. Go to this page and download the library: Download new-inventor/php-type-checker 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/ */
new-inventor / php-type-checker example snippets
self::param()->tint()->tfloat()->tstring()->callback(function ($value){
return is_object($value) && method_exists($value, '__toString');
});