kelunik/typeof

Types of PHP variables.

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

This package is auto-updated.

Last update: 2024-06-15 06:21:36 UTC


README

typeof

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.