.SetActive with Array Game Object

I want to set several gameobjects with tag inactive,
So here is my code and it doesn’t work…
Please help !!!

public GameObject W1P;

W1P = GameObject.FindGameObjectsWithTag(“w1p”);

foreach(GameObject wi in W1P)
{

 wi[].SetActive(false);

}

for(int i = 0; i < W1P.Length; i++)
{
W1P*.SetActive(false);*

  •  }*
    

You have extra brackets.

public GameObject[] W1P;

W1P = GameObject.FindGameObjectsWithTag("w1p");

foreach(GameObject wi in W1P) {
   wi.SetActive(false);
}