Home >> PHP >> implode() function in PHP

implode() function in PHP

Convert array to string.

Syntax

implode(separator,string);

Example

$array=array('Hello', 'Dear');
echo implode(" ", $array);

Output

Hello Dear

Post Your Comment

Next Questions
join() function
ltrim() function
md5() function
metaphone() function
money_format() function
nl2br() function
number_format() function
ord() function
parse_str() function
printf() function
quotemeta() function
rtrim() function
sha1() function
sha1_file() function
similar_text() function
str_ireplace() function
str_pad() function
str_repeat() function
str_replace() function
str_shuffle() function
str_split() function
str_word_count() function
strcasecmp() function
strchr() function
strcmp() function

Copyright ©2022 coderraj.com. All Rights Reserved.