Answers for "php receive a json string"

PHP
1

php return json data

header('Content-Type: application/json'); 

$colors = array("red","blue","green");
echo json_encode($colors);
Posted by: Guest on October-30-2019
0

PHP code to read JSON string on server

$str_json = file_get_contents('php://input');
Posted by: Guest on December-31-2021

Code answers related to "php receive a json string"

Browse Popular Code Answers by Language