title: Print Array Elements on one line
body: <p>I'm populating an array variable <code>$array</code> at some point in my code, for example like below</p>
  <pre><code>this
  
  is
  
  an
  
  array
  
  varaible
  </code></pre>
  <p>What if, I wanted to print out the array variable like <code>thisisanarrayvariable</code> as one liner</p>
  <p>i took the below approach, but i'am not getting any out while the program is hanging</p>
  <p><code>for ($i=0;$i -le $array.length; $i++)</code>
  <code>{ $array[$i] }</code></p>
  <p>obviuosly, i dont want to glue them together like <code>$array[0]+$array[1]+$array[2]..</code></p>
  <p>Hope i can get a better answer.</p>