Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001092

[PHP] Re: Recursion From: Martin (martin <email protected>)
Date: 09/30/01

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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>