Friday, 6 September 2013

How to limit array values in implode output

How to limit array values in implode output

I have more than 10 values in my array.
I would like to separate it with comma.
So I used this code
echo implode(",", $array);
Can someone tell me how to limit the values.? I need only the first three
values

No comments:

Post a Comment