Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #16608 > unrolled thread
| Started by | apoorv.kanungo@gmail.com |
|---|---|
| First post | 2016-03-03 22:08 -0800 |
| Last post | 2016-03-04 09:34 +0100 |
| Articles | 3 on this page of 23 — 7 participants |
Back to article view | Back to comp.lang.php
break foreach loop after certain iteration and then start it apoorv.kanungo@gmail.com - 2016-03-03 22:08 -0800
Re: break foreach loop after certain iteration and then start it Arno Welzel <usenet@arnowelzel.de> - 2016-03-04 09:27 +0100
Re: break foreach loop after certain iteration and then start it Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-05 02:28 +0100
Re: break foreach loop after certain iteration and then start it Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-04 21:32 -0500
Re: break foreach loop after certain iteration and then start it Arno Welzel <usenet@arnowelzel.de> - 2016-03-05 10:52 +0100
Re: break foreach loop after certain iteration and then start it Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-05 11:46 +0100
Re: break foreach loop after certain iteration and then start it Tim Streater <timstreater@greenbee.net> - 2016-03-05 12:08 +0000
Re: break foreach loop after certain iteration and then start it Arno Welzel <usenet@arnowelzel.de> - 2016-03-05 14:10 +0100
Re: break foreach loop after certain iteration and then start it Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-05 17:55 +0100
Re: break foreach loop after certain iteration and then start it Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-05 08:50 -0500
Re: break foreach loop after certain iteration and then start it Arno Welzel <usenet@arnowelzel.de> - 2016-03-06 10:57 +0100
Re: break foreach loop after certain iteration and then start it Tim Streater <timstreater@greenbee.net> - 2016-03-06 11:26 +0000
Re: break foreach loop after certain iteration and then start it Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-06 10:12 -0500
Re: break foreach loop after certain iteration and then start it Arno Welzel <usenet@arnowelzel.de> - 2016-03-06 22:48 +0100
Re: break foreach loop after certain iteration and then start it Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-06 20:49 -0500
Re: break foreach loop after certain iteration and then start it "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-03-07 16:28 +0100
Re: break foreach loop after certain iteration and then start it Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-07 12:38 -0500
Re: break foreach loop after certain iteration and then start it Arno Welzel <usenet@arnowelzel.de> - 2016-03-07 17:42 +0100
Re: break foreach loop after certain iteration and then start it Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-07 12:39 -0500
Re: break foreach loop after certain iteration and then start it Arno Welzel <usenet@arnowelzel.de> - 2016-03-09 08:18 +0100
Re: break foreach loop after certain iteration and then start it "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-03-09 10:05 +0100
Re: break foreach loop after certain iteration and then start it Jerry Stuckle <jstucklex@attglobal.net> - 2016-03-09 08:56 -0500
Re: break foreach loop after certain iteration and then start it "R.Wieser" <address@not.available> - 2016-03-04 09:34 +0100
Page 2 of 2 — ← Prev page 1 [2]
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Date | 2016-03-09 10:05 +0100 |
| Message-ID | <nbop03$qoj$1@solani.org> |
| In reply to | #16628 |
Arno Welzel wrote: > Jerry Stuckle schrieb am 2016-03-07 um 18:39: > >> On 3/7/2016 11:42 AM, Arno Welzel wrote: >> >>> Jerry Stuckle schrieb am 2016-03-07 um 02:49: >>> >>>> The same people in the group are the ones who "designed" the PHP >>>> language. Or lack of "design" being more accurate. >>> >>> Who of the members created PHP itself? Can you name at least one? >> >> Can you? Can you name the people who make those "recommendations"? > > Ahem - YOU claimed that there are people in the group who are involved > in the development of PHP itself. So it's YOUR turn to name at least one > if you are so sure about this. > > I only know the list at <http://www.php-fig.org/members/>. There are several members of the PHP-FIG who are also involved in the development of PHP itself. However, that was not what Jerry had claimed above; a claim which can easily proved wrong: just compare <http://php.net/credits.php> (section Language Design & Concept) with the list of the PHP-FIG members. -- Christoph M. Becker
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2016-03-09 08:56 -0500 |
| Message-ID | <nbp9tb$sjl$1@jstuckle.eternal-september.org> |
| In reply to | #16629 |
On 3/9/2016 4:05 AM, Christoph M. Becker wrote: > Arno Welzel wrote: > >> Jerry Stuckle schrieb am 2016-03-07 um 18:39: >> >>> On 3/7/2016 11:42 AM, Arno Welzel wrote: >>> >>>> Jerry Stuckle schrieb am 2016-03-07 um 02:49: >>>> >>>>> The same people in the group are the ones who "designed" the PHP >>>>> language. Or lack of "design" being more accurate. >>>> >>>> Who of the members created PHP itself? Can you name at least one? >>> >>> Can you? Can you name the people who make those "recommendations"? >> >> Ahem - YOU claimed that there are people in the group who are involved >> in the development of PHP itself. So it's YOUR turn to name at least one >> if you are so sure about this. >> >> I only know the list at <http://www.php-fig.org/members/>. > > There are several members of the PHP-FIG who are also involved in the > development of PHP itself. However, that was not what Jerry had claimed > above; a claim which can easily proved wrong: just compare > <http://php.net/credits.php> (section Language Design & Concept) with > the list of the PHP-FIG members. > Yup, and there are several things which go against good programming practices. Including the "design" of PHP. And any statement in the "recommendations" is just the opinion of one person. This is not ISO or even ANSI, where every line is voted on. Someone wants to add to the "recommendations", they just do it. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | "R.Wieser" <address@not.available> |
|---|---|
| Date | 2016-03-04 09:34 +0100 |
| Message-ID | <56d94876$0$24077$e4fe514c@news.xs4all.nl> |
| In reply to | #16608 |
Hello {name unknown},
> I know we can break foreach loop
Why break it ? Just count the iterations and do your stuff *inside* the
foreach loop when that counter reaches a certain value.
The other solution is to simply, after having started a new foreach loop,
not output anything for the first number of results. Yes, you need some
kind of counter there too. :-)
Hope that helps.
Regards,
Rudy Wieser
-- Origional message:
<apoorv.kanungo@gmail.com> schreef in berichtnieuws
6586983f-c3bc-4eb7-92a3-6035952e8cbb@googlegroups.com...
> Hello I have a foreach loop foreach($product as $products) and I want to
stop that after three iteration and output some html like <div
id="logo"></div>and after that div I want to continue the loop after three
iteration.
>
> I know we can break foreach loop after certain iteration with if condition
and break it but how would you continue the loop after break.
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.php
csiph-web