Answers for "php command transform js to json"

PHP
2

parse json phph

echo json_decode("[1,2,3]")[0];
Posted by: Guest on January-15-2020
-1

Returning JSON from a PHP Script

<?php
$data = /** whatever you're serializing **/;
header('Content-Type: application/json; charset=utf-8');
echo json_encode($data);
Posted by: Guest on November-18-2021

Code answers related to "php command transform js to json"

Browse Popular Code Answers by Language