check if array contains subarray php code example Example: php if array has mroe than one subarray if (count($arr) > 1) { .... }