LoginSignup
1
0

More than 5 years have passed since last update.

PHP My 辞書

Posted at

in_array

$list = [1, 2, 3, 4, 5];
in_array(5, $list, true);

str_split

$str = 'Hello World';
$arr = str_split($str);

trim(fgets(STDIN))

標準入力

array_search

$list = [1, 2, 3, 4, 5,];
$index = array_search(5, $list, true);
1
0
0

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
1
0