Text Practice Mode
PHP test file
created Sep 7th 2014, 20:01 by Gonzi
6
24 words
5 completed
0
Rating visible after 3 or more votes
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;
}
}
{
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 ...