$lave = array("a", "b","c", "d", "e", "f");
for($i = 0; $i < count($lave) + 1; $i++) {
if($i < count($lave)) {
echo $lave[$i] . "<br />";
}
else {
echo $i;
}
}
foreach ($children as $key => $child) {
$children[$key]['href'] = $this->url->link('product/category', 'path='.
$this->request->get['path'].'_'.$child['category_id'].$url);
}
foreach ($children as &$child) {
$child['href'] = $this->url->link('product/category', 'path='.
$this->request->get['path'].'_'.$child['category_id'].$url);
}