Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$numbers = array('1','2','3','4'); $number = '1';
すべての数値を数値と比較して、一部の値が$ numberに等しいかどうかを確認する方法はありますか?
はいあります:
if(in_array(1, array('1','2','3','4'))) { echo 'It in here'; }else{ echo 'nope its not';}