How to find the last element of the array
<p>I am trying to find the last element in the array by using foreach loop. </p>

<p>I have..</p>

<pre><code>  foreach ( $employees as $employee ) {

         $html.=$employee -&gt;name.'and ';

  }
</code></pre>

<p>I don't want to add 'and' to the last employee. Are there anyways to do this? Thanks a lot!</p>
