How can I get all values from my array in a loop in php? [closed]

If all your entries are nested, then you need to run another loop inside your first loop, but I’d test it to see if it’s an array and that it’s not empty.

foreach ( $entries as $entry ) {
    if ( is_array( $entry ) && !empty( $entry ) ) {
        foreach ( $entry as $sub_entry ) {
           echo $sub_entry;
        }
    }
}

I know there are other ways of being more complete about this, but this is the simplest answer I can think of off the top of my head.