eng
competition

Text Practice Mode

PHP test file

created Sep 7th 2014, 20:01 by Gonzi


6


Rating

24 words
5 completed
00:00
    function setFoo($arg1, $arg2 = 0)
    {
        if ($arg1 == 'good' || $arg1 == 'fair') {
            $this->foo = $arg1;
            return 1;
        } elseif ($arg1 == 'poor' && $arg2 > 1) {
            $this->foo = 'poor';
            return 2;
        } else {
            return false;
        }
    }

saving score / loading statistics ...