Welcome Guest, Not a member yet? Register   Sign In
How do redefine constant using CI?
#1

[eluser]suba[/eluser]
hi all,

does CI have any function for redefine constant value?

first time I define one constant .eg.
define("YEAR",date('Y'));

now i want to redefine this constant. so does CI have any option?

Pls help to me.
#2

[eluser]Jamie Rumbelow[/eluser]
Clue is in the name. Constant. You can't redefine a constant using CI, PHP, or even most modern programming/scripting languages. If you want to store a value that changes, use an object or a variable. They're not called variables for nothing!

Jamie
#3

[eluser]suba[/eluser]
Thank you so much.
I will find alternative method.

Thanks..




Theme © iAndrew 2016 - Forum software by © MyBB