PHP Tutorial : Implode function

Hi,
As I had issues with my old host, those days I worked to change it and didn’t had the time to post another nice php function called implode. This function php implode() simply joins the array elements into a string. Remember the explode function? Well this makes the reverse I would say in some way. Have a look :

<?php
$array = array("one", "two", "three");
$string = implode(",", $array);//make the "implosion"
print $string; //will return one, two, three
?>
This entry was posted in Basic PHP and tagged , , , , . Bookmark the permalink.

One Response to PHP Tutorial : Implode function

  1. Tutorials says:

    Thanks For the Tutor

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>