Created
February 5, 2025 04:51
-
-
Save erowsika/e3db33508270a9ec28bb0ae6c3585d63 to your computer and use it in GitHub Desktop.
PHP response json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = /** whatever you're data be **/; | |
header('Content-Type: application/json; charset=utf-8'); | |
echo json_encode($data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment