kumaraswamy.dapa Posted July 28, 2011 Share Posted July 28, 2011 HI all, is it possible to unset or change the value off a constant in program? Link to comment https://forums.phpfreaks.com/topic/243121-can-we-unset-or-reset-the-value-of-constant/ Share on other sites More sharing options...
WebStyles Posted July 28, 2011 Share Posted July 28, 2011 did you try to unset or reset it? Link to comment https://forums.phpfreaks.com/topic/243121-can-we-unset-or-reset-the-value-of-constant/#findComment-1248715 Share on other sites More sharing options...
kumaraswamy.dapa Posted July 28, 2011 Author Share Posted July 28, 2011 did you try to unset or reset it? <?php define("s",123); echo $s; ?> it is giving a error as "Udefined Symbol :s"............can you please resole why itg gng error. Link to comment https://forums.phpfreaks.com/topic/243121-can-we-unset-or-reset-the-value-of-constant/#findComment-1248720 Share on other sites More sharing options...
Pikachu2000 Posted July 28, 2011 Share Posted July 28, 2011 "Undefined Symbol", huh? Are you sure about that? $s is an undefined variable, not a constant. s is a constant. echo s; Link to comment https://forums.phpfreaks.com/topic/243121-can-we-unset-or-reset-the-value-of-constant/#findComment-1248721 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.