I have this function:
function display_btm_links() {
// find active
$active = $_SERVER['REQUEST_URI'];
// create array variables
$blinks['/'] = 'home';
$blinks['/how.php'] = 'how it works';
$blinks['/about.php'] = 'about us';
$blinks['/services.php'] = 'services';
$blinks['/benefits.php'] = 'benefits';
$blinks['/contact.php'] = 'contact';
$blinks['/legal.php'] = 'user agreement';
$blinks['/privacy.php'] = 'privacy policy';
// links function output
foreach ( $blinks as $blink => $btextLink ) {
echo ( $_SERVER['REQUEST_URI'] == $blink ) ? '<u>' . $btextLink . '</u> | ' : '<a href="' . $blink . '">' . $btextLink . '</a> | ';
}
}
I think the problem is obvious…I want my implode “glue” to be
|
But I am having insane trouble writing this so it works. Keep getting “bad arguments.”
If anyone can help I would appreciate it!