# Need help with IMPLODE

**URL:** <https://forum.kirupa.com/t/need-help-with-implode/239833>\
**Category:** programming\
**Created:** [September 26, 2007, 1:05pm UTC](https://forum.kirupa.com/t/need-help-with-implode/239833 "2007-09-26T13:05:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GFX\_Wiz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gfx_wiz/32/815_2.png) [@GFX\_Wiz](https://forum.kirupa.com/u/GFX_Wiz)\
**Post date:** [September 26, 2007, 1:05pm UTC](https://forum.kirupa.com/t/need-help-with-implode/239833/1 "2007-09-26T13:05:28Z")

</div>

I have this function:

```php
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> &nbsp; &nbsp; | &nbsp; &nbsp;' : '<a href="' . $blink . '">' . $btextLink . '</a> &nbsp; &nbsp; | &nbsp; &nbsp;';
 }
}

```

I think the problem is obvious…I want my implode “glue” to be

```auto
 &nbsp; &nbsp; | &nbsp; &nbsp;

```

But I am having insane trouble writing this so it works. Keep getting “bad arguments.”

If anyone can help I would appreciate it!
