I have an event log where the user clicks on the desired day and a message appears if he wishes to repeat this event for the other days of the week. For example, if he clicked on 11/10/2018 (Thursday), I would like that when selecting this option, the registration would repeat on 10/18/2018 and 10/25/2018 which are also Thursday .
I understand that getting the day of the numeric week, I have to do it this way:
$diaSelecionado = $_POST["DiaSelecionado"]; // 11/10/2018
list($dia,$mes,$ano) = explode("/",$diaSelecionado);
$diaSemanaNumeral = date('w',mktime(0,0,0,$mes,$dia,$ano));
But how could I identify the next Thursdays (or any other day of the week depending on the date selected) and make the proper registration?