1
我有一個三維數組。我試圖通過關鍵字在三維數組中搜索
$Platinum = array
(
array(
"Name" => "Art of Life",
"description" => "a description",
"keyword" => array(
"designing",
"interior design websites",
),
),
array(
"Name" => "Golden Art",
"description" => "a description",
"keyword" => array(
"designing",
"design company",
"design services",
),
),
);
搜索公司我想這print_r(array_search("designing", array_column($Platinum[0], 'keyword')));
,但沒有奏效。
如何查找關鍵字並獲取公司名稱,如果我找到關鍵字?
感謝。它適用於我 –
你是最受歡迎的! – rahulsm