- print_r: documentation ( source)
<?php
$arr = array(
array(
'id' => 7,
'title' => 'Pongal',
'start' => '2016-05-16'
),
array(
'id' => 7,
'title' => 'Mongok',
'start' => '2016-05-16'
)
);
foreach($arr as $key => &$val){
$val['color'] = 'red';
}
print_r($arr);