Instantly share code, notes, and snippets.

Embed
What would you like to do?
exemple F7/JSON/PHP
<?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