Ive tried str_repeat function but it doesnt alow functions inside to work.
How can i say... do...
include("$file.txt"); print ($a); $file=$file-1;
$repeat number of times?
as the str repeat can only be used to print it... i think...
What about trying eval (or something like that). I think it takes a string and evaluates and, if OK, executes it.
You may even not need str_repeat : just a for loop.
Erm...
how can i make it so it repeats, say 5 times tho, as i dont really understand it on php.net
the str_repeat() function is for repeating strings, not reapeating blocks of code. You need to use a for loop:
<? for ($i = 1; $i <= 5; $i++) { // do something 5 times } ?>
yeah heh, just use loops for repeating code. for loops for a set number of times, or do while for conditions, such as $var=true