/**QM Training */
$qm = $training["qm"];
/**ATC Training */
$atc = $training["atc"];
//  function testGetDepartments(){
// 	 $array = QMModel::getDepartmentsData();
// 	 echo " ".count($array);
// 	 return array;
//  }
function testGetInstructors($id)
{
    $array = QMModel::getInstructors($id);
    echo " " . count($array);
    return $array;
}
testGetInstructors(402);
//testGetDepartments();
function testDepartmentData($id)
{
    $departments = QMModel::getDepartmentsData();
    foreach ($departments as $object) {
        if ($object->ID != $id) {
            continue;
        }
        //get internal count
        $int = count($object->internalReviews);
        //get external count
        $ext = count($object->externalReviews);
        //get atc courses
        $atcCourses = $object->training["atc"];
        print_r($atcCourses);
<?php

require_once "qmmodel.php";
function testGetInstructors()
{
    $array = QMModel::getInstructors();
    echo "" . count($array);
}
echo "st";
testGetInstructors();