You can use `foreach` instead.

Syntax:

```php
foreach($players as $player){}
```