예제 #1
0
function get_message_no_by_day($month, $day)
{
    $foldername = "data/" . $_GET['country'];
    $filename = $foldername . "/" . "user_message.json";
    $data = data_read_json($filename);
    return array_sum($data[intval($month)][intval($day)]);
}
function get_words_list()
{
    $filename = "data/words_list";
    $list = data_read_json($filename);
    // echo json_encode ( $list ['words'] );
    return $list['words'];
}