'Non', 1 => 'Oui' ]; } public static function numberChoices( int $start, int $end, bool $addNullValue = true, string $appendToValues = '', int $increment = 1 ): array { $choicesArray = []; if($addNullValue) { $choicesArray[null] = '--'; } for($i = $start; $i <= $end; $i += $increment) { $choicesArray[$i] = $i.$appendToValues; } return $choicesArray; } }