1.

How to convert array to string in php?

Answer»

With the help of implode() function in PHP, we can convert arrays into STRINGS. It returns the string.

implode(separator,array);

Example

$arr = array("BEST", "Interview", "Question");
ECHO implode(" ",$arr);

OUTPUT

Best Interview Question



Discussion

No Comment Found