Guest User

slotech

a guest
Dec 22nd, 2021
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5. <?php
  6.  
  7. $format = 'd-m-Y';
  8.  
  9. $startDate = '01-01-2025';
  10. for ($x = 0; $x <= 200; $x++) {
  11. echo '<p style="color:white">', date($format, strtotime('+1 year', strtotime($startDate)) ), '</p>';
  12.  
  13. if(($x%2) === 0){
  14. $futureDate=date($format, strtotime('+5 year', strtotime($startDate)));
  15. $futureDate=date($format, strtotime('+100 days', strtotime($startDate)));
  16. $startDate = $futureDate;
  17. }
  18. }
  19.  
  20.  
  21. // $txt = "PHP";
  22. echo "$startDate";
  23.  
  24. ?>
  25.  
  26. </body>
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment