Answers for "php differenza giorni tra date"

PHP
0

php differenza giorni tra date

<?php
$dataOggi = date("Y/m/d");

$data = "2018/03/08";

$differenza = floor((strtotime($data) - strtotime($dataOggi)) / 86400);

echo $differenza;
?>
Posted by: Guest on January-08-2021

Browse Popular Code Answers by Language