Let’s say I have a variable $day. It can be anything from Monday to Sunday. How could I use that $day variable and increment it by 1 day?
Let’s say, I have $day = "Friday". How do I increment it to a Saturday?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use date() and strtotime() adding ‘+1 day’ to your string: