I have a mixed array type something like:
Array
(
[0] => 368
[1] => Array
(
[0] => 384
[1] => 383
)
)
I was trying to get the unique count as count(array_unique($arr_val))
but its throwing error: Array to string conversion
I want to count that nested as one type. For example, if another same array [384,383] appear on another index that should not be added on the total count as that won't be the unique one. In this case the unique count should be greater than 1.