I have to get the array key name using array_search but it gives me 0 and 1 rather than "login" or "home"
this is my code
$PAGINATOR = array("login" => array("permission" => false,
"auth" => false,
"title" => "Login",
"slug" => "?id=login",
"layout" => "pages/login.php",
"default" => true),
"home" => array("permission" => false,
"auth" => true,
"title" => "Home",
"slug" => "?id=home",
"layout" => "pages/home.php",
"default" => false));
array_search(true, array_column($PAGINATOR, 'default'))