Answers for "get content json php"

PHP
2

php file get content json

$json = file_get_contents('php://input',true);
$post = json_decode($json,JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
Posted by: Guest on October-01-2021
-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

Browse Popular Code Answers by Language