Created
January 14, 2020 19:34
-
-
Save lroman242/ab42f42fd2cd1a727339b8dcae56f90a to your computer and use it in GitHub Desktop.
medium json_encode codeblock 17
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
echo json_encode(["string_float" => "3.0"], JSON_NUMERIC_CHECK | JSON_PRESERVE_ZERO_FRACTION); | |
// {"string_float":3.0} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment