<?php
print_r(json_decode('{"hours":{"2018-06-10 11:00":2,"2018-06-12 07:00":5,"2018-06-12 08:00":4,"2018-06-12 09:00":2,"2018-06-13 09:00":1,"2018-06-13 13:00":1,"2018-06-13 23:00":1,"2018-06-15 13:00":1,"2018-06-15 14:00":1,"2018-06-15 15:00":2,"2018-06-18 06:00":5,"2018-06-18 07:00":9,"2018-06-18 08:00":1,"2018-06-18 09:00":1,"2018-06-18 12:00":2,"2018-06-18 13:00":13},"days":{"2018-06-10 00:00":2,"2018-06-12 00:00":11,"2018-06-13 00:00":3,"2018-06-15 00:00":4,"2018-06-18 00:00":29,"2018-06-18 07:00":2},"weeks":{"2018-06-10 00:00":20,"2018-06-17 00:00":29,"2018-06-18 07:00":2}}', TRUE));
- Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
- Array
(
[hours] => Array
(
[2018-06-10 11:00] => 2
[2018-06-12 07:00] => 5
[2018-06-12 08:00] => 4
[2018-06-12 09:00] => 2
[2018-06-13 09:00] => 1
[2018-06-13 13:00] => 1
[2018-06-13 23:00] => 1
[2018-06-15 13:00] => 1
[2018-06-15 14:00] => 1
[2018-06-15 15:00] => 2
[2018-06-18 06:00] => 5
[2018-06-18 07:00] => 9
[2018-06-18 08:00] => 1
[2018-06-18 09:00] => 1
[2018-06-18 12:00] => 2
[2018-06-18 13:00] => 13
)
[days] => Array
(
[2018-06-10 00:00] => 2
[2018-06-12 00:00] => 11
[2018-06-13 00:00] => 3
[2018-06-15 00:00] => 4
[2018-06-18 00:00] => 29
[2018-06-18 07:00] => 2
)
[weeks] => Array
(
[2018-06-10 00:00] => 20
[2018-06-17 00:00] => 29
[2018-06-18 07:00] => 2
)
)
- Output for 8.3.5
- Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Array
(
[hours] => Array
(
[2018-06-10 11:00] => 2
[2018-06-12 07:00] => 5
[2018-06-12 08:00] => 4
[2018-06-12 09:00] => 2
[2018-06-13 09:00] => 1
[2018-06-13 13:00] => 1
[2018-06-13 23:00] => 1
[2018-06-15 13:00] => 1
[2018-06-15 14:00] => 1
[2018-06-15 15:00] => 2
[2018-06-18 06:00] => 5
[2018-06-18 07:00] => 9
[2018-06-18 08:00] => 1
[2018-06-18 09:00] => 1
[2018-06-18 12:00] => 2
[2018-06-18 13:00] => 13
)
[days] => Array
(
[2018-06-10 00:00] => 2
[2018-06-12 00:00] => 11
[2018-06-13 00:00] => 3
[2018-06-15 00:00] => 4
[2018-06-18 00:00] => 29
[2018-06-18 07:00] => 2
)
[weeks] => Array
(
[2018-06-10 00:00] => 20
[2018-06-17 00:00] => 29
[2018-06-18 07:00] => 2
)
)
preferences:
153.92 ms | 404 KiB | 162 Q