📜  foreach powershell - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:27.005000             🧑  作者: Mango

代码示例3
> $array = @("item1", "item2", "item3")
 
> foreach ($element in $array) { $element }
item1
item2
item3
 
> $array | foreach { $_ }
item1
item2
item3