I have an array which contains following values.

```
array(
'dates' => array(
    (int) 0 => '2013-04-22',
    (int) 1 => '2013-04-23',
),
'publisherName' => array(
    (int) 0 => 'Comp1',
    (int) 1 => 'Comp2',
),
'loaded' => array(
    (int) 0 => (int) 2189,
    (int) 1 => (int) 37,
),
'clicks' => array(
    (int) 0 => (int) 0,
    (int) 1 => (int) 0,
),
'ctr' => array(
    (int) 0 => (int) 0,
    (int) 1 => (int) 0,
)
)

```

What I want to produce is getting company based data on different dates like the array below. 

How am I able to create an array which is like;

```
array (
    '2013-04-22'=>array(
        'publisherName'=>'Comp1',
        'loaded'=>2189,
        'clicks'=>0,
        'ctr'=>0),
    '2013-04-23'=>array(
        'publisherName'=>'Comp2',
        'loaded'=>37,
        'clicks'=>0,
        'ctr'=>0)
    ...
)

```

Which contains daily stats but which comes from `publishername` field.

Any ideas?