-2
如何從多維數組獲得唯一身份證值?如何在多維3D陣列中獲得獨特的價值?
$arr = array(
array(
array("avg"),
array("responsecnt"),
"other" => array ("surveycomplete"),
),
array(
array("avg","responsecnt"),
array("responsecnt"),
"other" => array ("surveycomplete"),
),
array(
array("avg","abc"),
array("responsecnt","xyz"),
"other" => array ("surveycomplete", "yes"),
),
array(
array("avg"),
array("responsecnt"),
"other" => array ("surveycomplete"),
)
);
echo "<pre>";
print_r($arr);
//find unique value
我需要一些方法來找到上面的數組中的唯一值。有人能幫我嗎?
你嘗試過什麼嗎? – Rizier123
並請...格式化該代碼。 –
是的,我一整天都累了。想嘗試一些解決方案。 – Manoranjan