get_debug_type()

Description

Returns the variable type. Differnce with getttype() is that get_debug_type() is more specific. See RFC[fn:rfc].

Syntax

namespace Foo;

class Bar
{
}

$bar = new Bar();

echo gettype(bar); // Foo\Bar

Footnotes

[fn:rfc]https://wiki.php.net/rfc/get\_debug\_type