Re: Recursion

From: Date: Sun, 30 Sep 2001 17:35:35 +0000
Subject: Re: Recursion
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69374@lists.php.net to get a copy of this message
Hi Andres, Yes, PHP support "recoursion". That means, that you are calling a function again and again, but with new start-parameters. For example, if you want to search a harddisc for a file, you will call your function SearchFolder($path) with "C:\". If the function itself detects subfolder, it will call itself, but with the parameters "C:\Subfolder1", "C:\Subfolder2" and so on. You have to watch out then, the the function terminated correctly, if the searched file is found. Martin

« previous php.general (#69374) next »