>
>
>
>How can I make the following work:
>
>function start($times)
>    {
>        for...loop starts here...
>        {  <-- notice only one bracket.
>    }
>
>function end()
>    {
>        } <-- the ending bracket.
>    }
>
>start('10');
>    html-code... I want this to be repeated 10 times.
>end();
>


Try instead:

function MakeLoop($loops, $htmlcode) {
    for($i=0; $i<$loops; $i++) {
        echo $htmlcode;
    }
}

MakeLoop(10);

Dont know if you can use this? Else, try to tell a bit more about what 
solution you want?

/Johan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to