Log in

View Full Version : Resolved Parse Error on Simple Time Script



onestopplay
03-13-2010, 02:53 PM
Here is my simple script:

<?php
$3daystime = time() + (3 * 24 * 60 * 60);
echo $3daystime;
?>
I get this error:

Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /Users/Sites/test.php on line 2
Anybody know what's wrong?
Thanks!

bluewalrus
03-14-2010, 05:32 AM
I dont think variable names can start with a number try three.

onestopplay
03-14-2010, 01:37 PM
Wow I feel really stupid. Thanks so much!