Skip to content

Instantly share code, notes, and snippets.

@lroman242
Created January 14, 2020 19:36
Show Gist options
  • Save lroman242/119f2f86aecfcdb5f09dbee2b1e1b598 to your computer and use it in GitHub Desktop.
Save lroman242/119f2f86aecfcdb5f09dbee2b1e1b598 to your computer and use it in GitHub Desktop.
medium json_encode codeblock 19
$result = ["key1" => "value1", "key2" => "value2"];
echo json_encode($result);
// {"key1":"value1","key2":"value2"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment