join()

Its an alias of implode() and joins array elements with a string

Example

<?php
$arry = array(“PHP”,”HTML”,”JS”);
echo join(“,”,$arry);
?>

Output

PHP,HTML,JS

Share