Practice on Operations in PHP
Let's find out how many seconds are in an hour. As
is known, there are 60 seconds in a minute, and
60 minutes in an hour. Therefore, to
find the number of seconds in an hour, it is necessary
to multiply 60 by 60:
<?php
echo 60 * 60; // number of seconds in an hour
?>
Find the number of seconds in a day.
Find the number of seconds in 30 days.
Find the number of seconds in a year.
Find the number of minutes in a day.
Find the number of minutes in a year.
Find the number of bytes in a megabyte.
Find the number of bytes in a gigabyte.
Find the number of bytes in 10 gigabytes.
Find the number of bytes in a terabyte.
Find the number of kilobytes in a terabyte.