Implode array elements : Explode implode « Development « PHP






Implode array elements


<?
$words[0] = "My";
$words[1] = "short";
$words[2] = "sentence.";
$sentence = implode(" ", $words);
print("$sentence<BR>");
?>
           
       








Related examples in the same category

1.Set Implode char
2.explode time
3.Takes a string apart based on a delimiter
4.Imploding an Array