Files
developer-roadmap/roadmaps/php/content/recursion@D9ybK5INH5zSOcYMb5ZPi.md

7 lines
431 B
Markdown

# Recursion
Recursion is a technique where a function calls itself to solve a smaller version of the same problem. Each recursive call must move toward a base case that stops the recursion. PHP supports recursion but does not optimize tail calls, so deep recursion can exhaust the call stack.
Visit the following resources to learn more:
- [@official@Functions - Recursion](https://www.php.net/manual/en/language.functions.php)