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 Link to comment https://forums.phpfreaks.com/topic/196060-help-with-turning-array-into-a-variable/ 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 Link to comment https://forums.phpfreaks.com/topic/196060-help-with-turning-array-into-a-variable/#findComment-1029782 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.