php - How to use implode? -


i have php code

<?php if(!empty($_post['invite'])) { foreach($_post['invite'] $check) {    echo implode($_post['invite'], ',');   } } 

result is: sky,earth,universesky,earth,universe

here result showing 2 times see after universe sky agian repeat, want show result one.

have idea?

just echo implode($_post['invite'], ','); no need use loop


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -