Testing - PHP OOP

Gym Records

Top Ten Exercises (1)

Array
(
    [0] => Array
        (
            [exercise] => Flat barbell bench press
            [count(exercise)] => 2151
        )

    [1] => Array
        (
            [exercise] => Squats
            [count(exercise)] => 1210
        )

    [2] => Array
        (
            [exercise] => Single arm tricep extensions
            [count(exercise)] => 953
        )

    [3] => Array
        (
            [exercise] => Deadlift
            [count(exercise)] => 825
        )

    [4] => Array
        (
            [exercise] => Concentration curls
            [count(exercise)] => 481
        )

    [5] => Array
        (
            [exercise] => Barbell curls, preacher bench
            [count(exercise)] => 444
        )

    [6] => Array
        (
            [exercise] => Dumbell curls, preacher bench
            [count(exercise)] => 393
        )

    [7] => Array
        (
            [exercise] => Machine row
            [count(exercise)] => 382
        )

    [8] => Array
        (
            [exercise] => Leg press
            [count(exercise)] => 264
        )

    [9] => Array
        (
            [exercise] => Dumbell lateral raises
            [count(exercise)] => 243
        )

)
Array
(
    [0] => Flat barbell bench press
    [1] => Squats
    [2] => Single arm tricep extensions
    [3] => Deadlift
    [4] => Concentration curls
    [5] => Barbell curls, preacher bench
    [6] => Dumbell curls, preacher bench
    [7] => Machine row
    [8] => Leg press
    [9] => Dumbell lateral raises
)
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

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