- version 3.6
Check those constraints:
$this->anything()
#!/bin/bash | |
# An example script how to parse a bash arguments with command | |
# link: https://stackoverflow.com/questions/192249/how-do-i-parse-command-line-arguments-in-bash | |
# Script version | |
SCRIPT_VERSION=0 | |
# Help message | |
function usage() { |
<?php | |
// origin: https://gist.github.com/archy-bold/bd696e8ec84a7657b724523e07fd7a6c | |
namespace Tests; | |
use DB; | |
use DateTime; | |
use App\User; | |
use Laravel\Passport\ClientRepository; |
$totalCorrect = 0; | |
for ($i = 1; $i < 22; i++) { | |
if (isset ($_POST['question-' . $i . '-answers']) && is_numeric($_POST['question-' . $i . '-answers'])) { | |
$totalCorrect += (int) $_POST['question-' . $i . '-answers']; | |
} | |
} |