File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,9 @@ foreach ($users as $id => $user) {
7272Random access like ` $users[42] ` is not yet possible.
7373Use above-mentioned ` foreach ` and find the item or use [ JSON Pointer] ( #parsing-a-subtree ) .
7474
75- Count the items via [ ` iterator_count($users) ` ] ( https://www.php.net/manual/en/function.iterator-count.php ) .
75+ Counting the items is possible via [ ` iterator_count($users) ` ] ( https://www.php.net/manual/en/function.iterator-count.php ) .
7676Remember it will still have to internally iterate the whole thing to get the count and thus will take about the same time
77- as iterating it and counting by hand .
77+ as iterating it and counting in a loop .
7878
7979Requires ` ext-json ` if used out of the box but doesn't if a custom decoder is used. See [ Decoders] ( #decoders ) .
8080
You can’t perform that action at this time.
0 commit comments