PHP functions explained

preview_player
Показать описание
#PHP #course #tutorial

00:00:00 introduction
00:00:36 declare a fucntion
00:02:13 arguments
00:04:29 return
00:06:17 exercise
00:07:36 strict data types
00:08:28 conclusion
Рекомендации по теме
Комментарии
Автор

<?php
function hypotenuse(float $a, float $b){
$c = sqrt($a ** 2 + $b ** 2);
return $c;
}

echo hypotenuse(3, 4);
?>

BroCodez
Автор

Your style makes it super easy to understand the subject. Thank you.

Nejad