1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP Recursive Functions: How to Write Them, and Why They're Useful

Discussion in 'Design & Development' started by Samuel, Jan 9, 2012.

  1. Samuel

    Samuel
    Expand Collapse
    Admin

    Joined:
    Dec 20, 2011
    Messages:
    5,576
    Likes Received:
    71
    Published in PHP Functions

    [​IMG]

    Like most programming languages that support functions, PHP lets you write recursive functions. In this tutorial, we'll explore the concept of recursion in PHP, and discover how to create recursive functions for various tasks.

    Recursion is one of those topics that can seem confusing at first, but once you start writing recursive functions you'll see how elegant recursion can be![​IMG]

    Continue reading...
     

Share This Page