Forum Discussion

rahulruns's avatar
rahulruns
Copper Contributor
Feb 19, 2019

read elements of an array simultaneously

Hi All,

I am PS newbie (though have worked on other languages). Is there a way we can read elements of an array simultaneously rather than iterating through a foreach loop. I have an array ("A" , "B" , "C" , "D"), instead of iterating like foreach ($x in $array) { print $x}, is it possible that I pull our all simultaneously