Created
January 14, 2020 19:36
-
-
Save lroman242/119f2f86aecfcdb5f09dbee2b1e1b598 to your computer and use it in GitHub Desktop.
medium json_encode codeblock 19
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
$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