I have two type of array.
First type
$arr = [1,2,3];
Second type
$arr = [[1,2,3],[4,5,6],[7,8,9]];
How to check that my array is single or multi array.
I am using below code which is always giving me as Multi Array
if(is_array($arr)){
echo "Multi Array";
} else{
echo "SingleArray";
}
if(is_array($arr) and is_array($arr[0]))