Jump to content

Find array in array of arrays


jberiksen

Recommended Posts

That doesn't really make sense.... but Ill try my best.

 

$array = array(
"array1" => array(),
"array2" => array(),
"array3" => array()
);

$is_array = is_array($array['array1']);
if($is_array)
echo "this array exists!";
else
echo "this array does not exist ";

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.