I want to get the value of a constant "test" using "test1".
I have tried it but only getting "test1" value but not "test" value.
<?php
class test
{
const test='fast';
const test1=test;
function testing()
{
echo test::test1;
}
}
<?php
include_once('class.test.php');
$d=new test;
echo $d->testing();
?>
Any suggestions?