-
-
Save clubeagn/2966f6029c441e5bb415ef6cbe2d178b to your computer and use it in GitHub Desktop.
exemple F7/JSON/PHP
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 | |
header('Access-Control-Allow-Origin: *'); // no cabeçalho | |
$array = array ('test1', 'test2', 'test3'); | |
echo json_encode ($ array); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment