Organizational Research By

Surprising Reserch Topic

Difference between join and implode in php.



asked Sep 13, 2013 in PHP by ashish singh
edited Sep 12, 2013
0 votes
252 views



Related Hot Questions

1 Answer

0 votes
Difference between join and implode in php. 
In this example, I will show how to use join and implode in php.
 
Join : Join is an Alias of implode().
 
Example:
$arr = array('boostr', 'knowledge', 'Tutorials');
$str = join(",", $arr);
echo $str; 
?>
Output: boostr,knowledge,Tutorials.
 
implode: implode Returns a string from array elements.
 
Example:
$arr = array('boostr', 'knowledge', 'Tutorials');
$str = implode(",", $arr);
echo $str; 
?>
Output: boostr,knowledge,Tutorials.
answered Sep 13, 2013 by ashish singh
edited Sep 12, 2013

...