Testing - PHP OOP

Gym Records

Top Ten Exercises (2)

Eureka
Flat barbell bench press
Squats
Single arm tricep extensions
Deadlift
Concentration curls
Barbell curls, preacher bench
Dumbell curls, preacher bench
Machine row
Leg press
Dumbell lateral raises
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