Like if today is Thursday, then I want to display Friday using php date() function.
For example, the below code will show the current month but the next day of the month. It worked. <?php echo date("M "), date("d")+1 ?>
So I was trying through this one <?php echo date("l")+1, date("d")+1 ?>
and it fooled me :(.
Have a look at strtotime
. Also, an l
will produce a full textual representation of the day of the week (e.g. Friday) when using date
.
Something like the following should do what you want:
date('l', strtotime('+1 day'))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With