Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <body>
- <?php
- $format = 'd-m-Y';
- $startDate = '01-01-2025';
- for ($x = 0; $x <= 200; $x++) {
- echo '<p style="color:white">', date($format, strtotime('+1 year', strtotime($startDate)) ), '</p>';
- if(($x%2) === 0){
- $futureDate=date($format, strtotime('+5 year', strtotime($startDate)));
- $futureDate=date($format, strtotime('+100 days', strtotime($startDate)));
- $startDate = $futureDate;
- }
- }
- // $txt = "PHP";
- echo "$startDate";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment