Implode array elements : Explode implode « Development « PHP
- PHP
- Development
- Explode implode
Implode array elements
<?
$words[0] = "My";
$words[1] = "short";
$words[2] = "sentence.";
$sentence = implode(" ", $words);
print("$sentence<BR>");
?>
Related examples in the same category