string[] stringArrayRemove(string[] $item, string[] $list)
なし
変数名 | 変数型 | 説明 |
---|---|---|
$items | string[] | 文字配列から削除する文字列値のリストです。 |
$list | string[] | 処理する配列です。 |
string $list[] = { "a", "b", "c", "d", "e", "f", "g" }; string $items[] = { "a", "c", "e", "g" }; string $diff[] = stringArrayRemove($items, $list); // Result : { b, d, f } //