I have an array $x = array(a,b,c); Each element of the array is a url.
There is a function link($x[$i]) which converts every element of the array into a hyperlink.
function convert($x){
$new = explode(',',$x);
for($i=0;$i<count($new);$i++){
echo link($new[$i]); // converts the url to hyperlink
}
This displays the output as url1 url2 etc. But wht if i want the comma ',' between the 2 urls. How do i get that, without the comma ',' being part of the hyperlink?
desired output would be
hyperlink1 , hyperlink2 etc // note comma ',' should not be part of the hyperlink