[ create a new paste ] login | about

Link: http://codepad.org/CNvhYYBm    [ raw code | output | fork ]

dacrosby - PHP, pasted on Oct 5:
1
2
3
4
5
6
7
<?php
$book = array("18"=>'', "19"=>'Amazon', "20"=>'Sony', "21"=>'Kobo', "22"=>'Smashwords', "23"=>'Apple', "24"=>'Android');


$all = implode(", ",array_filter($book));

echo $all;


Output:
1
Amazon, Sony, Kobo, Smashwords, Apple, Android


Create a new paste based on this one


Comments: