Monday, June 16, 2008

loop inside loop - user request

long time no post...
kalabaw20 asked me on a video tutorial i did on youtube (link here)... to do multiple loops .. so here's a loop inside a loop:
you add for example a while inside another one using different variables for incremention.. like this:
{
$i=0
while($i<100){
$y=0;
while($y<100){
echo $i."-".$y."
";
$y++;
}
$i++;
}
?>
The above code will show something like:
0-0
0-1
0-2
0-3
.
.
0-99
0-100
1-0
1-1
1-2
.
.
and so on.. untill it reaches 100-100

12 comments:

Happy said...

You have shared about loop inside loop that is awesome.Do you know which language is best for
web site development
,if you know then tell me.

Graphic Design Chennai said...

Its highly informative. I would be visiting your blog hereafter regularly to gather valuable information.

Web Design Company Chennai said...

Hey really I read love your blog… I am really thanks to you to share this informations in internet to my kind of persons… really I loved loved your blog…. I will come back to your blog every updates…

Unknown said...

Nice blog.
Gorgeous blog.
its excellent

You can also find interesting stuf here.

Kolkata Web Design and Search Engine Optimization

Online Software said...

Thank you for sharing this nice post..

Website Designing and Developm said...

I appreciate for post. I was looking for similar one. Can you update more details at link http://alienweb.in

Thanks

manoj

web design and development companies said...

i like you posting!!!!

social media marketing said...

Newbrandmedia is unique because we organize online campaigns that transcend the web and enter the offline world so as to generate leads and sales for our clients. We value each client and ensure the best for each of them.

Web development Company said...

I am interested in this topic and would like to find out some more information as my friend need information on this topic. Do you have any other articles about this?

Unknown said...

Hi,Social media is a web-based communication software that can interact with thousands of web users in the internet with Web Design Cochin. It is an accessible technique for all the business owners. Through the help of social media, the business will now be on its way to success.Thanks...

Digitalbit said...

This is a good article & good site.Thank you for sharing this article. It is help us following categorize:
healthcare, e commerce, programming, it consulting, retail, manufacturing, CRM, digital supply chain management, Delivering high-quality service for your business applications,
Solutions for all Industries,
Getting your applications talking is the key to better business processes,
Rapid web services solutions for real business problems,
Web-based Corporate Document Management System,
Outsourcing Solution,
Financial and Operations Business Intelligence Solution,

prologic-corp

SKP Knowledge Services said...

Thanks for sharing such huge content keep posting further....

Outsource Web Development Services in Chennai

android application development services in Chennai