Answers for "aary to string php"

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
6

php to string

$number = 10;
// To convert this number to a string:
$numberString = (string)$number;
Posted by: Guest on October-30-2020

Browse Popular Code Answers by Language