Next time someone asks you to take a FizzBuzz Test...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|$all_numbers = range(0,$biggest);|
|$threes = array_fill_keys(range(3, $biggest, 3), 'Fizz');|
|$fives = array_fill_keys(range(5, $biggest, 5), 'Buzz');|
|$fifteens = array_fill_keys(range(15, $biggest, 15), 'FizzBuzz');|
|$all_numbers = array_replace($all_numbers, $threes, $fives, $fifteens);|