I like to stop the html from printing if no value($num[0], $name[1]) exist.
here's my code:
foreach($categories as $name[1]=>$identity) {
$identity = trim($identity);
$name = explode("|", $identity);
$num = explode("|", $identity);
echo ("<a href=\"?cat=$num[0]\">$name[1]</a> ");
Can anybody help?