I have the following php code:
$menu_wood = array();
$menu_wood[] = array('link' => 'holz.php',
'description' => 'Holzübersicht',
'class' => isCurrentPage('holz.php')
);
$menu_wood[] = array('link' => 'ahorn.php',
'description' => 'Ahorn',
'class' => isCurrentPage('ahorn.php')
);
$menu_wood[] = array('link' => 'birke.php',
'description' => 'Birke',
'class' => isCurrentPage('birke.php')
);
Is there a buildin function in PHP that can return an array of all the ‘link’ elements, or do I need to write my own function?
I guess you need to use your own code this way.
If you wanna write a function, you can do so this way: