Hi!
How can I repeat a function 1000 times?
I have an script that creates random numbers but one at a time. How can I tell the function to do it a 1000 times?
Like for example $random_generator .=rand(1,10000);
Thanks for any help
| SitePoint Sponsor |

Hi!
How can I repeat a function 1000 times?
I have an script that creates random numbers but one at a time. How can I tell the function to do it a 1000 times?
Like for example $random_generator .=rand(1,10000);
Thanks for any help
"The Internet ? Is that thing still around ?"


first up - why on earth would you want to run a function 1000 times?!
PHP Code:for($i=0;$i<=999;$i++) {
// call function
}
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!

haha thanks SpikeZ, I donīt know why I wanted to run the function so many times haha. I thought that way it will display the results that number of times.
Thanks a 1000 times for your help
"The Internet ? Is that thing still around ?"

Given the subject, didn't you meanOriginally Posted by plasmahba
PHP Code:for($i=0;$i<=999;$i++) {
echo 'Thanks for your help' ;
}
![]()


lol
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!
Bookmarks