logo-MindMajix
c
chris bons

Posted on 24th July 2024|941 views

0
votes

Powershell Pass Array To Function

How will we pass arrays to function in Powershell?

1 answers
Answers
P
Surya kumar

Posted on 24th July 2024| views

  1. The following program illustrates how arrays can be passed to function:
Param

{

[array]$ArrayList = Get-Content ArrayList.txt

}

foreach($array in $ArrayList)

{

Write-Host $array

}

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo

  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos
Name
Course *
Email *
Phone Number