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*$aExp*$aExp*$aExp).
Is there any quicker/easier way to have that constant evaluated as is?
Nevermind, figured it out.
I need to remove the quotes from the constant definition.
|All times are GMT. The time now is 08:30 AM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0