View Single Post
Old 07-22-2008, 07:13 PM   #1 (permalink)
delayedinsanity
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default 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
delayedinsanity is offline  
Reply With Quote