示例#1
0
function echo_success($details = array())
{
    $details['status'] = 'OK';
    merge_additional_details($details);
    echo json_encode($details);
}
示例#2
0
function success_json($details = array())
{
    $details['status'] = 'OK';
    merge_additional_details($details);
    return json_encode($details);
}