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 />'; 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 .','. 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 />'; 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. 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 Link to comment https://forums.phpfreaks.com/topic/196604-php-comma/#findComment-1032274 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.