Solarpitch Posted February 28, 2008 Share Posted February 28, 2008 Hey, I've been messing around with this for a bit now but cant figure it out. Basically I am trying to add a "," after every number in the array so I can clearly see the numbers when printed to screen. This is what I was trying which is wrong ... <?php for ($i=0; $i<16; $i++) { $value1[$i].",". = random_num(1); } ?> Quote Link to comment https://forums.phpfreaks.com/topic/93483-syntax-question/ Share on other sites More sharing options...
Solarpitch Posted February 28, 2008 Author Share Posted February 28, 2008 Ah I sorted it out. I was just been stupid! Quote Link to comment https://forums.phpfreaks.com/topic/93483-syntax-question/#findComment-478938 Share on other sites More sharing options...
wildteen88 Posted February 28, 2008 Share Posted February 28, 2008 Rather than use a loop, just use implode Quote Link to comment https://forums.phpfreaks.com/topic/93483-syntax-question/#findComment-479401 Share on other sites More sharing options...
themistral Posted February 28, 2008 Share Posted February 28, 2008 If your problem has been solved, please remember to mark the thread as solved. Quote Link to comment https://forums.phpfreaks.com/topic/93483-syntax-question/#findComment-479445 Share on other sites More sharing options...
revraz Posted February 28, 2008 Share Posted February 28, 2008 Solved button is MIA since the update. Quote Link to comment https://forums.phpfreaks.com/topic/93483-syntax-question/#findComment-479493 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.