<?php
$inicio = new DateTime( $start_date ) ;
$fim = new DateTime( $end_date ) ;
$fim -> modify ( '+1 day' ) ;
$interval = new DateInterval( 'P1D' ) ;
$periodo = new DatePeriod( $inicio , $interval , $fim ) ;
foreach ( $periodo as $data ) {
// $arrayDiasSemestre[] = $data->format("l");
echo $data -> format ( "l" ) . ' é o dia da semana nr: ' . $data -> format ( "w" ) ;
}
PD9waHAKCmRhdGVfZGVmYXVsdF90aW1lem9uZV9zZXQoJ0V1cm9wZS9MaXNib24nKTsKJGluaWNpbyA9IG5ldyBEYXRlVGltZSgkc3RhcnRfZGF0ZSk7CiRmaW0gPSBuZXcgRGF0ZVRpbWUoJGVuZF9kYXRlKTsKJGZpbS0+bW9kaWZ5KCcrMSBkYXknKTsKCiRpbnRlcnZhbCA9IG5ldyBEYXRlSW50ZXJ2YWwoJ1AxRCcpOwokcGVyaW9kbyA9IG5ldyBEYXRlUGVyaW9kKCRpbmljaW8sICRpbnRlcnZhbCAsJGZpbSk7CmZvcmVhY2goJHBlcmlvZG8gYXMgJGRhdGEpewogICAvLyAkYXJyYXlEaWFzU2VtZXN0cmVbXSA9ICRkYXRhLT5mb3JtYXQoImwiKTsKICAgZWNobyAkZGF0YS0+Zm9ybWF0KCJsIikuJyDDqSBvIGRpYSBkYSBzZW1hbmEgbnI6ICcuJGRhdGEtPmZvcm1hdCgidyIpOwp9ICAK