Answers for "array to sting in php"

PHP
0

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 "n"; 
   echo"The Json string is $JsonObject";
?>
Posted by: Guest on April-23-2021
1

php array to string

$requestAsString = print_r($_REQUEST, true);
Posted by: Guest on September-22-2021

Browse Popular Code Answers by Language