Answers for "how to convert a php array to a string"

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

Array to string conversion php

echo json_encode($person);
Posted by: Guest on November-10-2021

Code answers related to "how to convert a php array to a string"

Browse Popular Code Answers by Language