profileRyan KesPGP keyI build stuffEmailGithubTwitterLast.fmMastodonMatrix

get~debugtype~()

Description

Returns the variable type. Differnce with getttype() is that get_debug_type() is more specific.

Syntax

namespace Foo;

class Bar
{
}

$bar = new Bar();

echo gettype($bar)."\n"; // Object
echo get_debug_type($bar); // Foo\Bar

Related

Footnotes