Jump to content

How would i do this??


Orionsbelter

Recommended Posts

How would i do this? say for example i execute a while loop that will loop for 30 times, however each third i want it echo Hello; so this means at loop 3, 6, 9, 12, 15 etc it will echo Hello.

 

Also so i had a table that consisted of 3 cols, the same again the loop goes for 30 times but this time it creates a new row and each third loop for example 3, 6, 9, 12, 15 etc it created another row.

 

For example the PHP interpreter would say ok loop this until 30 then it'll go 1 2 3 NEW ROW 4 5 6 NEW ROW 7 8 9 NEW ROW etc.

 

How are these done?

 

Thank you for reading

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.