Skip to content

Instantly share code, notes, and snippets.

@zonuexe
Last active September 21, 2017 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zonuexe/1507943849964e53d0f428bf3790b77b to your computer and use it in GitHub Desktop.
Save zonuexe/1507943849964e53d0f428bf3790b77b to your computer and use it in GitHub Desktop.
もっと嫌なFizzBuzz
<?php call_user_func($f=function($n)use(&$f){if(!$n)return;$f($n-1);echo $n%3?($n%5?$n:'Buzz'):($n%5?'Fizz':'FizzBuzz'),PHP_EOL;}, count(call_user_func(function (){$f=fopen(__FILE__, 'r');return explode("\n", stream_get_contents($f));})));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment