Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $month_names = array("January","February","March","April","May","June","July","August","September","October","November","December");
- echo "<select>";
- foreach($month_names as $month)
- {
- echo "<option>".$month."</option>";
- }
- echo "</select>";
- ?>
- <?php
- function showMonthNames($month_names)
- {
- foreach($month_names as $month)
- {
- echo $month."<br/>";
- }
- }
- showMonthNames($month_names);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement