I want want to show an album's artists separated by comma and as a link. Artist's names are saved in array. Code will explain more.
<?php
$Artist_Name = array("artist1", "artist2","artist3");
?>
<p class="style18"><b>Artists</b>: <span class="style24">
<?php
foreach ($Artist_Name as $_value) {
$Value_new = str_replace(' ', '-', $_value);
?>
<a href= "<?=BASE_PATH?>artist/<?=$Value_new?>"><?=$_value?></a>,
I'm getting the following result.
artist1, artist2, artist3,
I just want to kill that last comma and. Space. Thanks in advance. Any help would be great :)