Skip to content

Instantly share code, notes, and snippets.

@anatooly
Created July 1, 2013 20:50
Show Gist options
  • Save anatooly/5904519 to your computer and use it in GitHub Desktop.
Save anatooly/5904519 to your computer and use it in GitHub Desktop.
<?php
// php json.php
$json = array(
"key1" => "value1",
"key2" => "value2",
"key3" => array(
"key4" => array(
"param1", "param2", "param3",
"param4", "param5", "param6"
)
)
);
echo json_encode($json) . "\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment