title: concat string and array in php
body: <p>I have an array, and i want to concatenate it with a string.</p>
  
  <p>this is the arrays:</p>
  
  <pre><code>Array ( 
      [0] =&gt; Orange 1JD = 1
      [1] =&gt; Orange 5JD = 0
      [2] =&gt; Orange 10JD = 0
      [3] =&gt; Orange 20JD = 0
      [4] =&gt; Orange 50JD = 0
      [5] =&gt; Umniah 1JD = 0
      [6] =&gt; Umniah 5JD = 0
      [7] =&gt; Umniah 10JD = 0
      [8] =&gt; Umniah 20JD = 0
      [9] =&gt; Umniah 50JD = 0
      [10] =&gt; Zain 5JD = 0
      [11] =&gt; Zain 10JD = 0
      [12] =&gt; Zain 20JD = 0
      [13] =&gt; Zain 50JD = 0
  ) 
  </code></pre>
  
  <p>this is my code :</p>
  
  <pre><code>function emailSending($arrs){
      $to = getAdminEmail();
      $subject = "Card Quantity Alert!";
      $body = "Your Card is out of Quantity, Purchased more Card!\n\nThe Following Cards are:\n";
      foreach($arrs as &amp;$arr){
          echo $arr;
      }
      echo $body;
      if (mail($to, $subject, $body)) {
          echo("&lt;p&gt;Message successfully sent!&lt;/p&gt;");
      } else {
          echo("&lt;p&gt;Message delivery failed...&lt;/p&gt;");
      }
  }
  </code></pre>
  
  <p>is it possible that the value of $body will be like this?</p>
  
  <pre><code>Your Card is out of Quantity, Purchased more Card! The Following Cards are:
  Orange 1JD = 1
  Orange 5JD = 0
  Orange 10JD = 0
  Orange 20JD = 0
  Orange 50JD = 0
  Umniah 1JD = 0
  Umniah 5JD = 0
  Umniah 10JD = 0
  Umniah 20JD = 0
  Umniah 50JD = 0
  Zain 5JD = 0
  Zain 10JD = 0
  Zain 20JD = 0
  Zain 50JD = 0
  </code></pre>