Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 foreach、for 或 while 循环遍历这些值,然后输出您需要的任何内容:
<?php $html = '<select>'; for ($i=0; $i<500; $i++) { $html .= '<option value="' . $i . '">Option ' . $i . '</option>'; } $html .= '</select>'; echo $html; ?>