- print_r: documentation ( source)
<?php
$items = array(
'main' => array(
'label' => ('MENU'),
'entries'=> array('dash1'=>
array('label'=>'Dashboard 1',
'icon' => 'fas fa-wallet'),
'dash2'=>
array('label'=> 'Dashboard 2',
'icon' => 'fas fa-tachometer-alt'),
'dash3'=>
array('label'=> 'Dashboard 3',
'icon' => 'fas fa-tachometer-alt')
)
)
);
$new_items=array('newdash'=>array('label'=>'New Dashboard',
'icon' => 'fas fa-wallet'
)
) ;
$items['main']['entries']['newdash'] = $new_items['newdash'];
print_r($items);