我有以下陣列..在陣列返回錯誤的結果
<?php $arrLayout = array(
"section1" => array(
"wComingEpisodes" => array(
"title" => "Coming Episodes",
"display" => ""
)
));
?>
然後我想檢查是否wComingEpisodes是數組所以..
<?php if (in_array("wComingEpisodes" , $arrLayout)) {
echo "CHECKED";}
?>
但是它沒有返回即使它在陣列中。由於多個數組或者我的錯誤在哪裏,我是否需要做一些不同的事情?
否; ''wComingEpisodes「'不是數組'$ arrLayout'的值。 –