« Back to History
response.php
|
20260723_000646.php
Initial Domain Snapshot
Copy Code
<?php function json($data, $code = 200) { http_response_code($code); header('Content-Type: application/json; charset=utf-8'); echo json_encode($data, JSON_UNESCAPED_UNICODE); exit; } function read_json_body() { $raw = file_get_contents('php://input'); $d = json_decode($raw, true); return is_array($d) ? $d : []; }