summaryrefslogtreecommitdiff
path: root/sem_5/HLIN510_Web/php.php
diff options
context:
space:
mode:
Diffstat (limited to 'sem_5/HLIN510_Web/php.php')
-rw-r--r--sem_5/HLIN510_Web/php.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/sem_5/HLIN510_Web/php.php b/sem_5/HLIN510_Web/php.php
new file mode 100644
index 0000000..fe8175f
--- /dev/null
+++ b/sem_5/HLIN510_Web/php.php
@@ -0,0 +1,15 @@
+<?php
+ echo 'allo ';
+
+function factorielle ($n){
+ if ($n == 0){
+ return 1;
+ }
+ else {
+ return $n*factorielle($n-1);
+ }
+}
+
+ $tmp = factorielle(10);
+ echo $tmp;
+?>