Answers for "check values of an associative array php"

PHP
1

php check array is not associative

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

php verify associative array key eixsts

$array = ["key" => "value"];

if (array_key_exists("key", $array)) {
  echo "Key exists";
}
Posted by: Guest on February-23-2022

Code answers related to "check values of an associative array php"

Browse Popular Code Answers by Language