<?php $first = []; for ($i = 1; $i <= 1000; $i++) { $str = (string)$i; $first[$str[0]]++; } var_dump($first);
You have javascript disabled. You will not be able to edit any code.