2019-08-29

Idézetek formázása

<div class="container"> <blockquote class="brooks"> Tragedy is when I cut my finger. Comedy is when you walk into an open sewer and die. </blockquote> <blockquote class="ludwig"> I […]
2019-08-23

Időpontok közti differencia számítása

<?php function calculateDateDiff($start_date, $end_date) { $diff = date_diff(new DateTime($end_date), new DateTime($start_date)); echo "month: $diff->m, day: $diff->d "; } calculateDateDiff('2016-01-14', '2016-06-12'); echo "\n"; calculateDateDiff('2017-02-14', '2018-01-12'); echo "\n"; […]