Re: [PHP] foreach sorting

2005-04-19 Thread Philip Hallstrom
when the if statement is true how do i make it appear as the last record in the loop? $tabarray = array('/games' => 'Games', '/news' => 'News'); foreach ($tabarray AS $loc => $item) { if(strpos($loc, $_SERVER['REQUEST_URI']) !== false) { $tabmenulist .= ''.$item.' } else { $tabmenulist .=

[PHP] foreach sorting

2005-04-19 Thread Sebastian
when the if statement is true how do i make it appear as the last record in the loop? $tabarray = array('/games' => 'Games', '/news' => 'News'); foreach ($tabarray AS $loc => $item) { if(strpos($loc, $_SERVER['REQUEST_URI']) !== false) { $tabmenulist .= ''.$item.' } else { $tabm