Answers for "check data is array or not in php without is_array("

PHP
1

php check array is not associative

count(array_filter(array_keys($array), 'is_string')) === 0
Posted by: Guest on September-03-2020
2

check null in_array php

if (!empty($data_days) && in_array(1, $data_days, true)){ // use numeric value 1, not string
Posted by: Guest on June-02-2020

Code answers related to "check data is array or not in php without is_array("

Browse Popular Code Answers by Language