Last Updated: February 25, 2016
·
1.342K
· michelwilhelm

Snippet para obter a data do primeiro dia da semana (domingo)

print date(
      'Y-m-d H:i:s', 
      strtotime(
        sprintf("-%s days",
          date('w')
        )
      )
    );