You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1166,7 +1166,9 @@ The above example will set JSON options to 128+256+64 = 448, as per the table of
1166
1166
JSON_HEX_QUOT (8)
1167
1167
All " are converted to \u0022.
1168
1168
JSON_FORCE_OBJECT (16)
1169
-
Outputs an object rather than an array when a non-associative array is used. Especially useful when the recipient of the output is expecting an object and the array is empty.
1169
+
Outputs an object rather than an array when a non-associative array is used.
1170
+
Especially useful when the recipient of the output is expecting an object and
1171
+
the array is empty.
1170
1172
JSON_NUMERIC_CHECK (32)
1171
1173
Encodes numeric strings as numbers.
1172
1174
JSON_UNESCAPED_SLASHES (64)
@@ -1180,7 +1182,9 @@ The above example will set JSON options to 128+256+64 = 448, as per the table of
1180
1182
JSON_PRESERVE_ZERO_FRACTION (1024)
1181
1183
Ensures that float values are always encoded as a float value.
1182
1184
JSON_UNESCAPED_LINE_TERMINATORS (2048)
1183
-
The line terminators are kept unescaped when JSON_UNESCAPED_UNICODE is supplied. It uses the same behaviour as it was before PHP 7.1 without this constant. Available as of PHP 7.1.0.
1185
+
The line terminators are kept unescaped when JSON_UNESCAPED_UNICODE is supplied.
1186
+
It uses the same behaviour as it was before PHP 7.1 without this constant.
0 commit comments