|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-08-26 13:11 UTC] peehaa@php.net
[2018-08-26 13:12 UTC] peehaa@php.net
[2018-08-29 22:00 UTC] cmb@php.net
-Status: Open
+Status: Suspended
[2018-08-29 22:00 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 15:00:01 2025 UTC |
Description: ------------ Introduce an json_encode option that ignores all keys of associative arrays and writes the json object in the [] syntax instead of the {} syntax. Without having to use array_values(). So it can be used in objects that contain multiple arrays. E.g. $obj = array("key1" => "value", "key2" => "value2"); json_encode($obj, JSON_FORCE_ARRAY); // ["value", "value2"]