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<?php
echo 60 * 60; // number of seconds in an hour
?>
Задание 1
Find the number of seconds in a day.
Задание 2
Find the number of seconds in 30 days.
Задание 3
Find the number of seconds in a year.
Задание 4
Find the number of minutes in a day.
Задание 5
Find the number of minutes in a year.
Задание 6
Find the number of bytes in a megabyte.
Задание 7
Find the number of bytes in a gigabyte.
Задание 8
Find the number of bytes in 10 gigabytes.
Задание 9
Find the number of bytes in a terabyte.
Задание 10
Find the number of kilobytes in a terabyte.