kelunik/typeof

Types of PHP variables.

v1.0.0 2016-11-07 11:15 UTC

This package is auto-updated.

Last update: 2024-11-15 07:08:58 UTC


README

Installation

composer require kelunik/typeof

Usage

<?php

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"

License

MIT.