2 pins at the same time

MarkT:
Have you though about passing an array of pin numbers instead of a single pin number to the function?

how do i do that, can i get an example?