Jump to content

help with turning array into a variable


dezkit

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.