There is $month1=10 and $month2=4 .
If I sum those 2 months, I will get 14, but there is no month 14, it then means it’s february/2.
Is there a logic or a php function that when 6+7=1?
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.
Try modulus (remainder). So
(6 + 7) / 12would equal 1http://php.net/manual/en/language.operators.arithmetic.php