|
Posted by Siv Hansen on 10/19/05 00:55
I have this array,
$navbar_left = array(
'Hjem'=>'index.php',
'Borte'=>'borte.php',
'Uavgjort'=>'uavgjort.php'
);
I want to loop through it, but don't know how.
I've tried
foreach($navbar_left as $navbar){
foreach($navbar as $key=>$value){
// do something funny
}
}
and
foreach($navbar_left as $navbar){
// do funny stuff
}
and
foreach($navbar_left as $key=>$value){
// do funny stuff
}
None working, keep getting Warning: Invalid argument supplied for
foreach() in c:\wamp\www\cenit_web\index.php on line 14
anyone?
Navigation:
[Reply to this message]
|