From 829ee5c98247d1eb554b4a91c054d95474f3528e Mon Sep 17 00:00:00 2001 From: szabomarton Date: Thu, 17 Oct 2024 11:56:57 +0200 Subject: [PATCH] added orai --- 20241017/func.php | 34 ++++++++++++++++++++++++++++++++++ 20241017/html.php | 16 ++++++++++++++++ 20241017/index.php | 21 +++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 20241017/func.php create mode 100644 20241017/html.php create mode 100644 20241017/index.php diff --git a/20241017/func.php b/20241017/func.php new file mode 100644 index 0000000..656f419 --- /dev/null +++ b/20241017/func.php @@ -0,0 +1,34 @@ +0&& $num2> 0){ + return true; + } else{ + return false; + } + } else { + return false; + } +} + +function add(int $num1, int $num2){ + return $num1 + $num2; +} + +function add10(int $num){ + return $num+=10; +} + +function add11(&$num){ + return $num+= 11; +} + +function nincsertek($num = 100){ + return $num; +} \ No newline at end of file diff --git a/20241017/html.php b/20241017/html.php new file mode 100644 index 0000000..5675c08 --- /dev/null +++ b/20241017/html.php @@ -0,0 +1,16 @@ + + + + + + Függvények + + +
+ + + + +
+

+ + \ No newline at end of file diff --git a/20241017/index.php b/20241017/index.php new file mode 100644 index 0000000..50b9b21 --- /dev/null +++ b/20241017/index.php @@ -0,0 +1,21 @@ +"; + $n1 = 5; + echo add11($n1); + echo "
"; + echo $n1; + echo "
"; + echo nincsertek(); + echo "
"; + echo nincsertek(1); +} + +include("html.php"); \ No newline at end of file