Hi all am am trying to reduce duplicated elements in a php page. How can I create a function that will pass the different values in the array.
Thanks in advance
D
for ($i=$index-$x+1; $i<=$index; $i++)
{
echo "<div class='partner_description' id='partner_description_" .$partners_id[$i]. "'>";
echo "<p>".$description_value[$i]. "</p>";
echo "<div class='url'>";
echo "<a href='http://".$url_value[$i]."' target='blank'>".$url_value[$i]." </a></div>";
echo "</div>";
}