Vous devez être membre et vous identifier pour publier un article.
Les visiteurs peuvent toutefois commenter chaque article par une réponse.
[php] Dernier jour du mois
Article publié le 15/06/2006 12:46:13Comment savoir quel est le dernier jour du mois (29,30, ou 31)?
méthode 1 :
Code php (1 ligne)
<br />‹?php<br />$lastday = mktime(0, 0, 0, 3, 0, 2000);<br />echo strftime("Le dernier jour de Fevrier 2000 est : %d", $lastday);<br />?›<br />
méthode 2 :
Code php (1 ligne)
<br />‹?php<br />$lastday = mktime(0, 0, 0, 4, -31, 2000);<br />echo strftime("Le dernier jour de Fevrier 2000 est : %d", $lastday);<br />?›<br />
Un article de Lea72
Source :
English translation
You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.
Thank you in advance.
Document created the 13/09/2004, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/ast-rf-355.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.