Register on the forum now to remove ALL ads + popups + get access to tons of hidden content for members only!

Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > PHP / mySQL

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 09-24-2017, 11:10 PM   #1
eventplanner779
Registered User
 
Join Date: Sep 2017
Location: Delhi
Posts: 42
what types of loops exist in php ?

what types of loops exist in php ?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
eventplanner779 is offline   Reply With Quote

Old 09-26-2017, 06:22 AM   #2
travelowebseo
Registered User
 
Join Date: Sep 2017
Posts: 81
PHP supports following four loop types. for − loops through a block of code a specified number of times. while − loops through a block of code if and as long as a specified condition is true. do...while − loops through a block of code once, and then repeats the loop as long as a special condition is true.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
travelowebseo is offline   Reply With Quote
Old 10-20-2017, 04:27 AM   #3
sadianisar
Registered User
 
Join Date: Jul 2016
Posts: 2,900
There are 4 types of loops which PHP supports such as for - loops, foreach- loops, do...while - loops and while - loops.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
sadianisar is offline   Reply With Quote
Old 11-03-2017, 01:14 AM   #4
thevyakar
Registered User
 
Join Date: Nov 2017
Location: USA
Posts: 78
for
while
do..while
foreach
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
thevyakar is offline   Reply With Quote
Old 11-09-2017, 12:18 AM   #5
Shalini001
Registered User
 
Join Date: Oct 2017
Posts: 51
PHP supports following four loop types. for − loops through a block of code a specified number of times. while − loops through a block of code if and as long as a specified condition is true. do...while − loops through a block of code once, and then repeats the loop as long as a special condition is true.
Shalini001 is offline   Reply With Quote
Old 11-17-2017, 03:07 PM   #6
Faraone
Registered User
 
Join Date: Feb 2017
Location: Egypt
Posts: 1,682
There are four loops in php:
For
Foreach
Do... While
And while
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.



---
Join our
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
, Invite people and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
. Share your thoughts, moments and interesting.
Faraone is offline   Reply With Quote
Old 11-23-2017, 07:37 AM   #7
Lebar.123
Registered User
 
Join Date: Nov 2017
Posts: 396
All that exist in all other languages:

For While Do While ForEach.
__________________
Get your email validated by our
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
@ ZeroBounce
Lebar.123 is offline   Reply With Quote
Old 11-23-2017, 09:47 PM   #8
seven miles
Registered User
 
Join Date: Nov 2017
Posts: 70
PHP supports following four loop types.

for − loops through a block of code a specified number of times.

while − loops through a block of code if and as long as a specified condition is true.

do...while − loops through a block of code once, and then repeats the loop as long as a special condition is true.

for each − loops through a block of code for each element in an array
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
seven miles is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importance of Php Development for Web Development tech.biztech Programming General 18 10-23-2017 03:42 AM
How many types of joining in php mark1 PHP / mySQL 10 02-17-2017 07:00 AM
What are Loops in Java? What are three types of loops? Shivangi Panwar Java 7 06-20-2016 05:02 AM
Explain the different types of errors in PHP. Broach India Programming General 7 04-10-2015 03:46 AM
PHP project training in ahmedabad, live project training in php ahmedabad anantitsolution Post your ad here 1 07-16-2013 08:42 PM


All times are GMT -7. The time now is 03:04 AM.


Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.