<?php $numbers = [210, 11, 12]; $operators = ['-', '/']; $result = (array)($numbers[0] ?? []); foreach ($operators as $i => $result[]) { $result[] = $numbers[++$i]; } var_export($result);
You have javascript disabled. You will not be able to edit any code.