Advertisement
touhid_xml

Year in foreach

Jun 10th, 2017
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <select>
  2.     <?php foreach(range(1800,2017) as $year): ?>
  3.         <option value="<?php echo $year; ?>"><?php echo $year; ?></option>
  4.     <?php endforeach; ?>
  5.  
  6. </select>php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement