Answers for "php how to array to string conversion"

PHP
4

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
2

convert numeric array to string array php

$integerIDs = array_map('intval', explode(',', $string));
Posted by: Guest on September-15-2020

Code answers related to "php how to array to string conversion"

Browse Popular Code Answers by Language