PHP implode() Function
Posted by Raj
PHP implode() Function
implode : The implode() function returns a string from the elements of an array.
Syntax
implode(separator,array)
Example: implode()
<?php
$arr = array("PHP","implode","explode" ,"string","functions");
$str = implode(",", $arr);
echo $str;
?>
Output: PHP, implode, explode, string, functions.
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
array,
difference,
echo,
email,
example,
explode,
functions,
history,
implode,
implode(),
phone,
PHP,
PHP implode() Function,
PHP interview questions and answers,
separated,
split,
string
.You can leave a response, or trackback from your own site.