Say I have the following array:
$arr = array(
"number2"=>"valid",
"number13"=>"valid"
);
and I need to find if there is a key that exists with number*
.
For $arr
, this would be true. For the following array:
$arr2 = array(
"key"=>"foo",
"key2"=>"foo2"
);
this would return false.