Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php return json response with status code

header('Content-type: application/json');
http_response_code(200);
echo json_encode([
	'message' => 'thanks'
]);
 
PREVIOUS NEXT
Tagged: #php #return #json #response #status #code
ADD COMMENT
Topic
Name
6+7 =