PHP code example of kelunik / typeof

1. Go to this page and download the library: Download kelunik/typeof 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/ */

    

kelunik / typeof example snippets




use function Kelunik\Typeof\typeof;

var_dump(typeof(new stdClass)); // "stdClass"
var_dump(typeof("")); // "string"
var_dump(typeof(42)); // "integer"
var_dump(typeof(42.)); // "double"