Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/08/2015, 13:31
AlanLelouch
 
Fecha de Ingreso: agosto-2015
Mensajes: 1
Antigüedad: 8 años, 8 meses
Puntos: 0
Pregunta Como podria agrupar este array en PHP

Yo tengo este array :
Código PHP:
 array(3) {
  [
0]=>
  array(
5) {
    [
"alu_id"]=>
    
string(10"2015100100"
    
["nombres"]=>
    
string(29"Vargas Gonzales Maritza Rocio"
    
["mat_id"]=>
    
string(2"27"
    
["cri_id"]=>
    
string(2"EP"
    
["not_nota"]=>
    
string(2"12"
  
}
  [
1]=>
  array(
5) {
    [
"alu_id"]=>
    
string(10"2015100100"
    
["nombres"]=>
    
string(29"Vargas Gonzales Maritza Rocio"
    
["mat_id"]=>
    
string(2"27"
    
["cri_id"]=>
    
string(2"EF"
    
["not_nota"]=>
    
20
  
}
  [
2]=>
  array(
5) {
    [
"alu_id"]=>
    
string(10"2015100133"
    
["nombres"]=>
    
string(29"Pedro Javier Lopez"
    
["mat_id"]=>
    
string(2"28"
    
["cri_id"]=>
    
string(2"EP"
    
["not_nota"]=>
   
13
  

Quiero agruparlos y que me quede asi:

Código PHP:
    [0] => 
       
alu_id
      nombres
      mat_id
      
["notas"] =>
         [
0] =>
             
cri_id
             not_nota
         
[1]  =>
            
cri_id
            not_nota
   
[1] => 
       
alu_id
      nombres
      mat_id
      
["notas"] =>
         [
0] =>
             
cri_id
             not_nota
         
[1]  =>
            
cri_id
            not_nota 
Agrupando por el alu_id

Última edición por AlanLelouch; 16/08/2015 a las 13:33 Razón: Falto colocar mas informacion