'while'-like user functions in a module?
| From: | Marc Boeren | Date: | Wed, 03 Jan 2001 12:44:47 +0000 |
| Subject: | 'while'-like user functions in a module? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42798@lists.php.net to get a copy of this message | ||
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 :-)