2
I need to generate the days of the current week from Sunday to Saturday and store them in a vector in the format dd/mm/aaaa
, I have the following code to catch the current week:
$diaAtual = date('w');
$semAtual = date('Ymd', strtotime('-'.$diaAtual.' days'));
The vector would have to stay that way:
$dias(7){
[dom] => '13/08/2017',
[seg] => '14/08/2017',
[ter] => '15/08/2017',
[qua] => '16/08/2017',
[qui] => '17/08/2017',
[sex] => '18/08/2017',
[sab] => '19/08/2017'
}
The solutions didn’t help you?
– novic