<?php
$arr = json_decode('
{
"results": [
{
"url": "https:1783.json",
"id": 1783,
"created_at": "2019-08-29T13:52:47Z",
"status": "open",
"recipient": null
},
{
"url": "https:1781.json",
"id": 1781,
"created_at": "2019-08-29T10:21:57Z",
"status": "open",
"recipient": null
}
]
}
', true);
echo count(array_filter($arr['results'], function ($val) {return $val['status'] == 'open';}));
preferences:
28.31 ms | 405 KiB | 5 Q