<?php

function calculateValues($a, $b)
{
    $c = $a + $b;
    return calculateMoreValues($c, $a);
}
function calculateMoreValues($a, $b)
{
    return $a - $b;
}
echo calculateValues(10, 20);
            // Video Production, Worship Arts
            if ($objGroup->MinistryId == 24 || $objGroup->MinistryId == 15) {
                calculateValues($objGroup);
            }
            break;
        case 'WorshipService':
            // Worship Service Ministries
            if ($objGroup->MinistryId == 23) {
                calculateValues($objGroup);
            }
            break;
        default:
            $objMinistry = Ministry::LoadByToken($ministrydepartment);
            if ($objMinistry->Token == $objGroup->MinistryId) {
                // Get all participants in the group
                calculateValues($objGroup);
            }
            break;
    }
}
/**************/
// Disable strict no-cache for IE due to IE issues with downloading no-cache items
if (QApplication::IsBrowser(QBrowserType::InternetExplorer)) {
    header("Pragma:");
    header("Expires:");
}
header('Content-Type: text/csv');
header('Content-Disposition: attachment; filename=VolunteerReport.csv');
print "Volunteers Report From " . $startDate->__toString('MMM YYYY') . " to " . $endDate->__toString('MMM YYYY') . "  \r\n";
print "Department/Ministry: " . QApplication::PathInfo(2) . "\r\n";
print "\r\n";