1
我有這樣的代碼在這裏:PHP如果不是在陣列
if (in_array("Notecards", $array) || in_array("Poster", $array)){
echo "Match found";
}else{
echo "Match not found";
}
我的問題是,海報可能是海報1海報2海報3海報4等
有如果客場說海報然後空間然後一個數字不在我的數組?
你能後的樣本output.Its沒有太多明確你問 –
是'$ array'排序? –
$ array沒有排序,但可能有像Poster 1或Poster 3或Poster 2這樣的值......我只是想找出是否「海報」,然後「」,然後是我的數組中的任何數字。 – user1269625