First of all thanks for your help.
I have the following doubt:
I get a date for $ _POST[fecha]I would like to know which method I should implement in PHP to get every day of the week corresponding to that date. For example, if I receive the date 2019-04-22, which is the Monday of last week, the system returns all the dates corresponding to this week:
2019-04-23, 2019-04-24, 2019-04-25 until Sunday of the same week.
thanks a lot for your help