0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

PHP in_array

Posted at

説明

配列の中に特定の値があるかどうかの判定するために用いられる関数です。

使い方

in_array(検索したい値,検索対象の配列);

特定の値が含まれている場合trueを含まれない場合falseを返します。

使用例

$matrix = ['メッシ','ロナウド','ネイマール'];
in_array('ネイマール',$matrix);

trueを返します。

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?