According to the same value in the packet php

$ ARR = Array 
( 
    0 => Array 
        ( 
            'Initial' => 'A', 
            'typename' => 'Audi' 
        ), 
    . 1 => Array 
        ( 
            'Initial' => 'F.', 
            'typename' => 'Fl ' 
        ), 
    2 => Array 
        ( 
            ' Initial '=>' F. ', 
            ' typename '=>' F2 of ' 
        ) 
); 
$ Result = Array (); 
the foreach ($ ARR AS $ K => $ V) { 
    $ Result [V $ [ 'Initial']] [] = $ V; 
} 
 
// $ result obtained what you need to include the

  

Guess you like

Origin www.cnblogs.com/love1226/p/12119358.html