2
I am managing to do the listing in the correct way, but some values are duplicated and I wanted to remove them and I can not at all... if anyone can help me, I am very grateful.
// Creating variable
$sector_list = $s->getSector();
// Listing
<?php foreach($sector_list as $value): ?>
<option>
<?php echo $value['sector']; ?>
</option>
<?php endforeach; ?>
The Return happens correctly, but with duplicate values.
array_unique()
https://www.w3schools.com/php/func_array_unique.asp– user76097