function is_multi($array) {
    $filter = array_filter($array, 'is_array');
    print_r($filter);
    if(count($filter) > 0) {
    	return true;
    }
    return false;
}
var_dump(is_multi([
	"Valeri"=> [
		"weight"=>77, 
	],
	"Giorgi"=> [
		"weight"=>87, 
		"parents"=> [
			"father"=>"Daviti",
			"mother"=>"Mariami",
		]
	],
]));
by Luka Khitaridze
2 years ago
PHP
Array
0
Pro tip: use ```triple backticks around text``` to write in code fences