Is there a quick way for cutting off data from an array? Let's say I have an array with 200 keys but I need only 10 of them.

I guess I could generate a new array as an alternative but maybe there is a faster way of doing it?

Regards,
Summer

    $new_array = array_slice ($array, 0, 10);

      Write a Reply...