kelunik/typeof

Types of PHP variables.

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

This package is auto-updated.

Last update: 2024-03-15 05:50:36 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.