how to count different kaeys and related different values in php arrays : iam trying to count the number of absenties and number of presenties per section in below example.but it is not easy to me how count number of absenties and presenties per section can u help me any one....thanks in advance




 Array
(
    [0] => Array
        (
            [Section] => Attendance
        )

    [1] => Array
        (
            [CSE-A] => PRESENT
        )

    [2] => Array
        (
            [CSE-G] => ABSENT
        )

    [3] => Array
        (
            [CSE-A] => ABSENT
        )

    [4] => Array
        (
            [CSE-C] => PRESENT
        )

    [5] => Array
        (
            [CSE-C] => PRESENT
        )

    [6] => Array
        (
            [CSE-C] => PRESENT
        )

    [7] => Array
        (
            [CSE-C] => PRESENT
        )

    [8] => Array
        (
            [IT] => PRESENT
        )

    [9] => Array
        (
            [CSE-D] => ABSENT
        )

    [10] => Array
        (
            [CSE-G] => ABSENT
        )

    [11] => Array
        (
            [CSE-B] => PRESENT
        )

    [12] => Array
        (
            [CSE-A] => ABSENT
        )

    [13] => Array
        (
            [CSE-C] => PRESENT
        )

    [14] => Array
        (
            [CSE-E] => ABSENT
        )

    [15] => Array
        (
            [CSE-B] => ABSENT
        )

    [16] => Array
        (
            [CSE-E] => ABSENT
        )

    [17] => Array
        (
            [CSE-F] => ABSENT
        )

    [18] => Array
        (
            [CSE-G] => ABSENT
        )

)