Hi,
i have a problem with my array_filter
Example i need all usernames or ids for the array_filter like the $filter examples
How can i get all ids into this format
thanks a lot for checking my thread
or
array_filter example
admins please move my thread
i have a problem with my array_filter
Example i need all usernames or ids for the array_filter like the $filter examples
How can i get all ids into this format
thanks a lot for checking my thread
PHP Code:
$filter = array("1","2","3");
PHP Code:
$filter = [1,2,3];
array_filter example
PHP Code:
$filter = array("1","2","3");
$filter = [1,2,3];
$filtered = array_filter($responseData['json'], function ($item) use ($filter) {
return in_array($item['id'], $filter);
});