xxreenaxx1 Posted March 26, 2010 Share Posted March 26, 2010 How do I put a comma between these arrays echo '<td>'.$arr["title"].$arr["year"].$arr["rating"]'</td>'.'<br />'; Quote Link to comment https://forums.phpfreaks.com/topic/196604-php-comma/ Share on other sites More sharing options...
Mchl Posted March 26, 2010 Share Posted March 26, 2010 .','. Quote Link to comment https://forums.phpfreaks.com/topic/196604-php-comma/#findComment-1032240 Share on other sites More sharing options...
beamerrox Posted March 26, 2010 Share Posted March 26, 2010 echo '<td>'.$arr["title"].','.$arr["year"].','.$arr["rating"].'</td><br />'; Quote Link to comment https://forums.phpfreaks.com/topic/196604-php-comma/#findComment-1032249 Share on other sites More sharing options...
oni-kun Posted March 26, 2010 Share Posted March 26, 2010 You could also write it as: echo "<td>{$arr['title']},{$arr['year']},{$arr['rating']}</td><br />"; If you want to keep it nice and simple within a string. Quote Link to comment https://forums.phpfreaks.com/topic/196604-php-comma/#findComment-1032272 Share on other sites More sharing options...
xxreenaxx1 Posted March 26, 2010 Author Share Posted March 26, 2010 well, thank you to all of you guys. It works now Quote Link to comment https://forums.phpfreaks.com/topic/196604-php-comma/#findComment-1032274 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.