You wish to usually get the initial 5 equipment from an array, though if there usually exists reduction than 5 equipment in the array, we still wish to get them all.
The outcome would be an form non-static containing during many 5 items.
Is there the singular PHP duty which can do this? (I wish to equivocate regulating any double back or if statement)
Many interjection to we all.
use this function
array_slice(array, offset, length, preservekeys)
in your case the function call will be like this
$result_array = array_slice($your_array, 0, 5 );