In Minecraft can you use an array in a /fill command? [closed]

The wiki already lists every possible syntax of the /fill command, so you cannot use lists of blocks.

The closest you can get to that is using a block tag (archive). For example to replace all types of logs with stone, you can use this command:

/fill <coords> <coords> stone replace #logs

There are a few built-in block tags, but you can also create your own using a datapack.

Block tags only exist in Minecraft Java edition. At the time I'm writing this, the asker did not specify a Minecraft edition.