1
I’m with a project where I need to change information from week to week.
Is there an automated PHP function that can help me subtract today’s date by a base date that I set. For example:
$datadehoje = (int)date("d/m/Y");
$database = (int)date("15/07/2018");
$resultado = $datadehoje - $database;
The code above is misspelled but is to illustrate more or less what I wanted. The project will have information for months and would not want to have to create an algorithm for this.
Did any of the answers solve your question? Do you think you can accept one of them? Check out the [tour] how to do this, if you haven’t already. You would help the community by identifying what was the best solution for you. You can accept only one of them. But you can vote on any question or answer you find useful on the entire site (when you have enough score).
– Maniero