I know that here is old, but these are my thoughts.
$some = ['foo', 'bar']; for($i = 0; $i < count($some); $i++){ echo $some[$i]; }
- Update -
$some = ['foo', 'bar']; $someCounted = count($some); for($i = 0; $i < $someCounted; $i++){ echo $some[$i]; }
He would achieve what you are looking for in the first place.
However, you need to increase your $ i index.
So this will not save you from entering text.
source share