Hello I have an array and a foreach loop, which is technically working fine. Here is my code.
foreach ($results as $result) {
$data['manrat'][] = array(
'manufacturer' => $result['manufacturer'],
'mhref' => $this->url->link('/info', 'manufacturer_id=' . $result['manufacturer_id'])
);
}
And
<?php foreach($manrat as $manrate) { ?>
<a href="<?php echo $manrate['mhref']; ?>"><?php echo $manrate['manufacturer'];?> </a>
<?php } ?>
This is give me a result like this:
name1 name2 name3 name4 name5
I would like to store each name to different variables. This is possible?