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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c++ - CryptStringToBinary API behavior -