<?php

require_once "../php/main.php";
api_done(array("durations" => get_valid_durations()));
示例#2
0
function validate_duration($duration)
{
    if (!in_array($duration, get_valid_durations())) {
        throw new Exception();
    }
}