QuestionsPHP array value show with separated comma
mmWebetutorial Staff asked 3 months ago

$arlocagoe = array(“this is base”,”35″,”coll”,”price”);

echo $getuniqloc = rtrim(implode(‘,’, array_unique($arlocagoe)), ‘,’);

Result:- this is base, 35 , coll, price

Your Answer
Login
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.