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