Implode in PHP

It takes array of strings and combine all strings into one string.Here array of fruit has been taken and converted into an single string.

Source code :

<?php 
 $fruit = array("apple","banana","mango");
echo implode("  ",$fruit);
?>

Output :

applebananamango

Output :


                

Comments :