El último día de un mes en php5

Mes anterior:
date_create(date('Ym01'))->modify('-1 day')

Este mes:
date_create(date('Ym01'))->modify('+1 month -1 day')

Un mes concreto mediante timestamp:
date_create(date('Ym01', $timestamp))->modify('+1 month -1 day')

2 comentarios:

  1. Además, se puede obtener la cantidad de días de un mes concreto y con eso crear una fecha, usando la función date.


  2. A line wager consists of two avenue bets which are be} marked by a counter. Along the lengthy line you 메리트카지노 mark within the t-cross and canopy six numbers e.g. four, 5, 6, 7, 8 and 9. Just as a result of|as a result of} might have} gained the jackpot quickly as} doesn't suggest you'll be able to|you probably can}'t do it once more. Therefore, you can contemplate diving back into the seedy underbelly of the gambling world and attempt to land extra to buy even more cool issues.