Testing - PHP OOP

Gym Records

Top Ten Exercises (2)

Eureka
Flat barbell bench press
Single arm tricep extensions
Squats
Deadlift
Dumbell curls, preacher bench
Machine row
Dumbell curls, seated and bent-over
Barbell curls, preacher bench
Single arm tricep pressdowns
Leg press
Array
(
    [0] => Array
        (
            [body_part] => back
        )

    [1] => Array
        (
            [body_part] => biceps
        )

    [2] => Array
        (
            [body_part] => chest
        )

    [3] => Array
        (
            [body_part] => legs
        )

    [4] => Array
        (
            [body_part] => multiple
        )

    [5] => Array
        (
            [body_part] => shoulders
        )

    [6] => Array
        (
            [body_part] => triceps
        )

)

Source:
How to get an array of specific "key" in multidimensional array without looping Stack Overflow