dezkit Posted March 21, 2010 Share Posted March 21, 2010 hey, i try out this code <?php $times = "1022.3234"; $times = explode(".", $times); $1 = $times[0]; ?> But i keep receiving this message, Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/public_html/hi.php on line 4 What is the problem? thank you Quote Link to comment Share on other sites More sharing options...
teamatomic Posted March 21, 2010 Share Posted March 21, 2010 A variable cant start with a number. HTH Teamatomic Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.