<?php
$data = array('users' => array(
array(
'name' => 'foo',
'age' => 22,
),
array(
'name' => 'Middle',
'age' => 22,
),
array(
'name' => 'older Foo',
'age' => 23,
),
array(
'name' => 'older Bar',
'age' => 23,
),
array(
'name' => 'bar',
'age' => 22,
),
), 'regroup_by' => 'name');
|