$result = '';
while($row = $query->fetch(PDO::FETCH_ASSOC)) {
$result = "<option>".$row['fullname'] . '</option>';
}<div class="viewing-wrapper">
<div class="viewing-container">
<div class="viewing-title">
Выберите абоненета из списка
</div>
<div class="viewing-list">
<div class="viewing-select-wrap">
<select class="viewing-select">
<?= $result ?>
</select>
<button class="button btn-show">Показать</button>
</div>
</div>
</div>
</div>
$mapLinks = array_map(function($originalPath, $resultPath) {
// тут делай все, что хочешь с этими двумя, например:
return [$originalPath => $resultPath];
}, $startLinks, $resultLinks); $styles = [
'grid-2h',
'grid-2h',
'grid-1',
'grid-1',
'grid-4',
'grid-4'
];
shuffle($styles);
$total = count($styles);
$trigger = 1;
$buffer = [];
while ($trigger) {
foreach ($styles as $k => $style) {
if (count($buffer) == $total) {
$trigger = 0;
break;
}
$next = $styles[$k+1] ?? ($total - 1);
$next == $style ?: $buffer[] = $style;
}
}
print_r( $buffer );
if ($this->get('parametr') == 1)), то нечего пока ревьювить, всё плохо.