Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Convert an Array to a String in PHP

phpCopy<?php   
$arr = array("This","is", "an", "array");  
$string = implode(" ",$arr);  
echo "The array is converted to the string.";
echo "
";
echo "The string is '$string'";
?>
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #Convert #Array #String #PHP
ADD COMMENT
Topic
Name
6+9 =