0
0

【PHP】文字列→配列へ変換

Posted at

「,」区切りの文字列を配列にする!

<?php
$string = "A,B,C";
print_r(explode(",", $string));
?>
Array
(
    [0] => A
    [1] => B
    [2] => C
)
0
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
0
0