why is This method constant() in php is giving me warning
<pre><code>const MyConstant = "test";
$declaredcons = "MyConstant";
echo constant ($declaredcons);//Emits me warning why???
echo constant ("MyConstant");//How ever not working 
echo MyConstant;//Outputs test .I dont want to use this...
</code></pre>

<p>Iam trying to know why it is giving me warning when i const(constantname).Can any one has tried it .Iam using 5.3.6 on windows 7. Is It bug?</p>
