From 76f00a55fff7aef8357f3bce9c0f161c771ebdfc Mon Sep 17 00:00:00 2001 From: gabriel Date: Wed, 8 May 2024 13:10:58 +0200 Subject: [PATCH] #06 - php --- .../06 - RECURSIVIDAD/php/gabrielmoris.php | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 Roadmap/06 - RECURSIVIDAD/php/gabrielmoris.php diff --git a/Roadmap/06 - RECURSIVIDAD/php/gabrielmoris.php b/Roadmap/06 - RECURSIVIDAD/php/gabrielmoris.php new file mode 100644 index 0000000000..c85954f486 --- /dev/null +++ b/Roadmap/06 - RECURSIVIDAD/php/gabrielmoris.php @@ -0,0 +1,86 @@ + $fib_res); + + + if ($num != $fib_res) { + return "Error: This Number doesn't belong to fibonacci sequence."; + } + + return $pos; +} + +$fibo_num = 1346269; +$posi = get_fibo_pos($fibo_num); +echo "Fibonacci possition of number " . $fibo_num . " is " . $posi . "\n";