Created
June 2, 2019 15:00
-
-
Save samfcmc/4d9ad2d82b3d5d540a736f6899440560 to your computer and use it in GitHub Desktop.
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 = getDataFromDatabase(); | |
// Let's output the $data variable's content | |
var_dump($data); | |
// Let's output the result of calling json_encode | |
$encoded = json_encode($data); | |
var_dump($encoded); | |
echo $encoded; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment