7
4

More than 5 years have passed since last update.

ズンドコキヨシ with PHP Extension

Last updated at Posted at 2016-03-18

C言語で専用関数を作る

スクリーンショット 2016-03-19 0.27.58.png

C言語で無名再帰を可能にしてPHPでポエムる

<?php
echo (function ($c = '') {
    $v = $c . array_rand(array_flip(['ズン', 'ドコ']));
    return
        preg_match('/(?:ズン){4}ドコ$/', $v)
        ? $v . 'キ・ヨ・シ!'
        : callee()($v)
    ;
})();
7
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
4