I'm having 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 I defined. For example:
$datadehoje = (int)date("d/m/Y");
$database = (int)date("15/07/2018");
$resultado = $datadehoje - $database;
The above code is spelled wrong but is to more or less exemplify what I wanted. The project will provide information for months and do not want to have to create an algorithm for it.