thesoggycow Posted April 28, 2007 Share Posted April 28, 2007 So here is my script... <? $number = $_GET['number']; $length = strlen($number); $prearray = chunk_split($number,1,"."); $number = explode(".", $prearray); $omg = 0; $i = 0; while ($i < $length){ if ($omg == 2){ $moo = $length - $i; $tempfinalnumber = $finalnumber; $finalnumber = $tempfinalnumber.",".$number['$moo']; $omg = 0; } else{ $moo = $length - $i; $tempfinalnumber = $finalnumber; $finalnumber = $tempfinalnumber.$number['$moo']; $omg = $omg+1; } $i++; } echo $finalnumber; ?> I get the error, PHP Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /comma.php on line 6 I don't see any variables starting with numbers... I gotta be blind... or am I just stupid? Keaton Link to comment https://forums.phpfreaks.com/topic/49028-solved-im-either-stupid-or-blind/ Share on other sites More sharing options...
AndyB Posted April 28, 2007 Share Posted April 28, 2007 I get no errors with that. Did you remember to save that version? And upload it to the server? Link to comment https://forums.phpfreaks.com/topic/49028-solved-im-either-stupid-or-blind/#findComment-240191 Share on other sites More sharing options...
thesoggycow Posted April 28, 2007 Author Share Posted April 28, 2007 Hey Thanks! Thats what it was... Multiple servers=confusion.... So its official... I am stupid! Keaton Link to comment https://forums.phpfreaks.com/topic/49028-solved-im-either-stupid-or-blind/#findComment-240217 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.