Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to return an api response in phpo

header('Content-Type: application/json; charset=utf-8');
echo json_encode($response); // the response is sent back to the browser
Source by localhost #
 
PREVIOUS NEXT
Tagged: #return #api #response #phpo
ADD COMMENT
Topic
Name
6+9 =