## DAYS INTO SECONDS
<?php
<?php
function days_to_seconds($days) {
if(is_numeric($days)) {
return 86400*$days;
} else {
return ‘string must be numeric’;
}
}
if(is_numeric($days)) {
return 86400*$days;
} else {
return ‘string must be numeric’;
}
}
## PARSE
echo days_to_seconds(8); // NUMBER OF DAYS
echo days_to_seconds(8); // NUMBER OF DAYS
## RESULT
// 691200
// 691200
?>
0 comments:
Post a Comment