PHP 程序员就是这样撸的

来源:互联网 发布:网络视频营销成功案例 编辑:程序博客网 时间:2024/06/16 12:16
<?php$lu = init();do {    $she = $lu('up') || $lu('down');} while(!$she);echo '爽!';function init() {    playVideo('波多.mp4');    $happyLevel = 0;    return function ($direction) use (&$happyLevel) {        if (!in_array($direction, ['up', 'down'])) {            throw new Exception('方向错误,屌断!');        }        if ($direction == 'up') {            $start = 0;            $end   = 100;        } else {            $start = 100;            $end   = 0;        }        for ($i = $start; $i != $end; $i += $start < $end ? 1 : -1) {            touchDick($i);        }        return ++$happyLevel > 10000;    };}
原创粉丝点击