79091016

Date: 2024-10-15 17:07:37
Score: 2
Natty:
Report link

Improving on what @svisstack has submitted as a solution for the issue:

   
for ($index=0; $index < min(5, count($arr)); $index++)
{
    print_r ($arr[$index]); //change echo to print_r
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @svisstack
  • Low reputation (1):
Posted by: Collins Okoroafor