Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- ReflectionClass::hasConstant --FILE-- <?php class Foo { const c1 = 1; } $clas..

Decoded Output download

--TEST--
ReflectionClass::hasConstant
--FILE--
<?php
class Foo {
    const c1 = 1;
}
$class = new ReflectionClass("Foo");
var_dump($class->hasConstant("c1"));
var_dump($class->hasConstant("c2"));
?>
--EXPECT--
bool(true)
bool(false)

Did this file decode correctly?

Original Code

--TEST--
ReflectionClass::hasConstant
--FILE--
<?php
class Foo {
    const c1 = 1;
}
$class = new ReflectionClass("Foo");
var_dump($class->hasConstant("c1"));
var_dump($class->hasConstant("c2"));
?>
--EXPECT--
bool(true)
bool(false)

Function Calls

None

Variables

None

Stats

MD5 27e883b54264688cbdf84507644baa62
Eval Count 0
Decode Time 98 ms