Created
April 19, 2012 01:24
-
-
Save mgng/2417728 to your computer and use it in GitHub Desktop.
jsontest.php
This file contains 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( 'Content-Type: application/json; charset=utf-8' ); | |
echo json_encode( | |
array( | |
'name' => 'mgng', | |
'twitter' => '@mgng', | |
'hobby' => 'インータネット', | |
'address' => array( | |
'pref' => '東京都', | |
'city' => 'インータネット市', | |
), | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment