How To Convert Array Into String In PHP

on Monday, 24 March 2014
Declare Array : $ar = array("parth","raja","nikhar");

method 1:
    echo implode($ar,",");

method 2:
     echo join(",",$ar);


both method produce same result : parth,raja,nikhar

0 comments :

Post a Comment