[PHP-DEV] 'while'-like user functions in a module? From: Marc Boeren (M.Boeren <email protected>)
Date: 01/03/01

Hi!

Is it possible to create a user-defined function in a module that does
something like this:

$i=0;
module_loop($i) {
    // repeats this X times
    echo module_echo();
    }

? And if so, how do I do it?
And if it is possible, can I also create something like

module_loop($i) {
    echo module_echo();
    }
else {
    echo "module_loop failed for some reason, so I will do something else";
    }

Cheerio, Marc (prepared to be disappointed :-)

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