PHP gevorderde |
|
<?php
$array = array();
$output = '';
foreach($array as $listItem) {
$output .= '<a href="/categorie/"' . $listItem['id'] . '">' . $listItem['title'] . '</a><br />';
}
$output = substr($output, 0, -6);
<?php $output = ''; foreach($array as $listItem) { $output .= '<a href="/categorie/"' . $listItem['id'] . '">' . $listItem['title'] . '</a><br />'; } $output = substr($output, 0, -6);
Nog niet getest  |