I need a help to know how many equal dates for PHP to give me a count in numbers, for example "3 dates are the same", what I have to code so far is this:
$hoje = '2018-07-02';
$datafinal = '2018-07-02';
if(strtotime($hoje) == strtotime($datafinal){
}