07-22-2008, 07:13 PM
|
#1 (permalink)
|
|
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
|
Evaluating a math expression contained in a constant
I could swear this was working before, but now it's not evaluating... I have a constant,
COOKIE_EXPIRE which contains the value '60*60*24*14'. To evaluate this as a math expression I've had to explode it based on the * and reform the entire string by hand ($aExp[0]*$aExp[1]*$aExp[2]*$aExp[3]).
Is there any quicker/easier way to have that constant evaluated as is?
-m
|
|
|
|