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
Post a Comment