I am trying to find the last element in the array by using foreach loop.
I have..
foreach ( $employees as $employee ) {
$html.=$employee ->name.'and ';
}
I don't want to add 'and' to the last employee. Are there anyways to do this? Thanks a lot!