Title: PHP Help Needed
Last modified: August 18, 2016

---

# PHP Help Needed

 *  [charlene2021](https://wordpress.org/support/users/charlene2021/)
 * (@charlene2021)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/php-help-needed-1/)
 * I am using the comment plugger plugin found here: [http://mtdewvirus.com/code/wordpress-plugins/](http://mtdewvirus.com/code/wordpress-plugins/)
 * I want a comma after each commenters name except the last commenter example:
   
   jake, josh, chris, adam
 * `<?php mdv_comment_plugger('Commented: ', 25); ?>` This is what the php code 
   is, what would I add to this to get desired effect.

Viewing 1 replies (of 1 total)

 *  [christinexo](https://wordpress.org/support/users/christinexo/)
 * (@christinexo)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/php-help-needed-1/#post-591947)
 * I know this is alittle bit late, but… I did this to mine:
 * in ur comment-plugger.php file do this
 *     ```
       if ($commenters) {
       		$output = '';
       		$commenters = array_reverse($commenters); // Reserve the order so most recent commenter is last in the array
   
       		foreach ($commenters as $commenter) {
       			if (!empty($commenter->comment_author)) {
       				if (!empty($commenter->comment_author_url))
       					$output .= ' <a>comment_author_url . '" title="Visit ' . $commenter->comment_author . '">' . $commenter->comment_author . '</a>, ';
       				else
       					$output .= '' . $commenter->comment_author . '<strong>,</strong> ';
       			}
       		}
   
       		echo $before . '
       <ul>' . $output . '</ul>
       ';
       	}
       }
       ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘PHP Help Needed’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 1 reply
 * 2 participants
 * Last reply from: [christinexo](https://wordpress.org/support/users/christinexo/)
 * Last activity: [18 years, 5 months ago](https://wordpress.org/support/topic/php-help-needed-1/#post-591947)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
