Jump to content

[SOLVED] calculating array


kaveman50

Recommended Posts

I feel like we're going in circles. The function already removes the two lowest elements. That's the point of 'array_shift($arr); array_shift($arr);'. The array is already sorted from lowest to highest and array_shirt() removes the first element. Alternatively you could use do array_splice($arr, 0, 2);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.