Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Convert an Array to a String in PHP

phpCopy<?php
   $array = ["Lili", "Rose", "Jasmine", "Daisy"];
   $JsonObject = json_encode($array);
   echo "The array is converted to the Json string.";
   echo "
"; 
   echo"The Json string is $JsonObject";
?>
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #Convert #Array #String #PHP
ADD COMMENT
Topic
Name
1+1 =