[php] カンマ区切りの文字列を配列にする
カンマ区切りの文字列を配列にする
カンマ区切りの文字列を配列にするにはexplode関数を使用する
サンプルコード:
$data='Apple,Amazon,Google,Facebook'; $company=explode(',',$data); print($company[0]); //apple
カンマ区切りの文字列を配列にするにはexplode関数を使用する
サンプルコード:
$data='Apple,Amazon,Google,Facebook'; $company=explode(',',$data); print($company[0]); //apple