Answers for "convert array to string to array in php"

PHP
1

array to string php

<?php

$array = array('lastname', 'email', 'phone');
$comma_separated = implode(",", $array);

echo $comma_separated; 

// lastname,email,phone


?>
Posted by: Guest on November-24-2021
0

Convert an Array to a String in PHP

phpCopyjson_encode( $ArrayName );
Posted by: Guest on April-23-2021

Code answers related to "convert array to string to array in php"

Browse Popular Code Answers by Language