Q:

Convert table to hierarchical vs linear

I'm looking if exists for any standard functions in PHP to change a tabular array into a deeper grouped array as below: 
$table = [
    [1, "group1", "Name 1", "Value 1"]
    , [2, "group1", "Name 2", "Value 2"]
    , [3, "group1", "Name 3", "Value 3"]
    , [4, "group1", "Name 4", "Value 4"]
    , [5, "group2", "Name 5", "Value 5"]
    , [6, "group2", "Name 6", "Value 6"]
    , [7, "group2", "Name 7", "Value 7"]
];

$table_result = [
    "group1" =>
        [
            [1, "Name 1", "Value 1"]
            , [2, "Name 2", "Value 2"]
            , [3, "Name 3", "Value 3"]
            , [4, "Name 4", "Value 4"]
        ]
    , "group2" =>
        [
            [5, "Name 5", "Value 5"]
            , [6, "Name 6", "Value 6"]
            , [7, "Name 7", "Value 7"]
        ]
];

A:

Not with a signle function, but it's quite simple :
foreach ($table as $v) {
    $table_result[$v[1]][] = array($v[0], $v[2], $v[3]);
}

