How to convert array to string in php?

In this blog, We are going to learn, How to convert an array to a string in PHP?

By Using implode() function:

The implode() method is an inbuilt function in PHP and is used to join the elements of an array. The implode() function returns a string from the elements of an array.

Syntax:

string implode($separator, $array)

Example:

<?php
$list_array = array( '123','food', 'bread', 'bazar' );
echo implode( ", ", $list_array );
?> 
Output:
123, food, bread, bazar

I hope that you found this Blog helpful. If you’ve any queries, please leave comments in the comment section.

Thanks for following and reading this blog.