<?php
$x = array(
"C_Card_ID" => array(
"dbName"=>"CardID",
"type"=>"disabled",
"key"=>"primary"
),
"C_Payroll_ID" => array(
"dbName"=> "PayrollID",
"key"=>"unique"
),
"C_First_Name" => array("dbName"=>"FirstName")
?>
I want keys of $x which has "key" index in its second array. In simple words, i need C_Card_ID and C_Payroll_ID as an output in array, so later i will implode them.
Required output Sample : Array("C_Card_ID","C_Payroll_ID")
Please don't use Loop algo. I need to use some build-in function.