1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-01-17 21:18:23 +01:00

Update README.md

This commit is contained in:
Filip Halaxa 2020-04-17 15:13:22 +02:00 committed by GitHub
parent 9184c0c317
commit 47b478a42b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ JSON Machine is efficient drop-in replacement for inefficient iteration of big J
// this often causes Allowed Memory Size Exhausted
- $users = json_decode(file_get_contents('500MB-users.json'));
// this takes few kB of memory no matter the file size
// this usually takes few kB of memory no matter the file size
+ $users = \JsonMachine\JsonMachine::fromFile('500MB-users.json');
foreach ($users as $id => $user) {