Van professionele vertalers, bedrijven, webpagina's en gratis beschikbare vertaalbronnen.
see also shuffle() and foreach.
see shuffle() for another example of its use.
Laatste Update: 2011-10-24
Gebruiksfrequentie: 1
Kwaliteit:
this means that you do not need to call reset() before a foreach loop.
הערה: כאשר מתחיל ביצוע לולאת foreach, ערכו של המצביע הפנימי מאותחל לאבר הראשון במערך. כלומר, אין צורך לבצע קריאה לפונקציה reset() לפני לולאת foreach.
Laatste Update: 2011-10-24
Gebruiksfrequentie: 1
Kwaliteit:
break ends execution of the current for, foreach while, do..while or switch structure.
פקודת break תגרום לעצירת הריצה של מבנה הבקרה הנוכחי מסוג for, foreach while, do..while או switch.
Laatste Update: 2011-10-24
Gebruiksfrequentie: 1
Kwaliteit:
assuming the foreach loop runs to completion, the array 's internal pointer will be at the end of the array.
הלולאות הבאות זהות מבחינה פונקציונאלית:
Laatste Update: 2011-10-24
Gebruiksfrequentie: 1
Kwaliteit:
see also key(), list(), current(), reset(), next(), prev(), and foreach.
see also key(), list(), current(), reset(), next(), prev(), and foreach().
Laatste Update: 2011-10-24
Gebruiksfrequentie: 1
Kwaliteit:
foreach ($_post as $var = $value) {echo "$var = $value br \n";}
foreach ($http_post_vars as $var = $value) {echo "$var = $value br \n";}
Laatste Update: 2011-10-24
Gebruiksfrequentie: 1
Kwaliteit:
Waarschuwing: Bevat onzichtbare HTML-opmaak
your monthly premium for part b may go up 10% foreach full 12-month period that you could have had part b, but didn’t sign up for it.
הפרמיה החודשית בעבור part b עשויה לעלות עד כדי 10% לכל תקופה של 12 חודשים שבהם יכול היה להיות למבוטח part b, אך הוא לא נרשם להצטרף אליו.
Laatste Update: 2016-03-03
Gebruiksfrequentie: 2
Kwaliteit:
also note that foreach operates on a copy of the specified array, not the array itself, therefore the array pointer is not modified as with the each() construct and changes to the array element returned are not reflected in the original array.
הערה: שים לב גם לכך שלולאת foreach פועלת על שיכפול של המערך המסויים ולא על המערך עצמו ולכן ערכו של מצביע המערך אינו משתנה כמו בפקודת each().
Laatste Update: 2011-10-24
Gebruiksfrequentie: 1
Kwaliteit:
/* foreach example 1: value only * / $a = array (1, 2, 3, 17); foreach ($a as $v) {print "current value of \$a: $v.\n";} / * foreach example 2: value (with key printed for illustration) * / $a = array (1, 2, 3, 17); $i = 0; / * for illustrative purposes only * / foreach($a as $v) {print "\$a[$i] = $v.\n"; $i++;} / * foreach example 3: key and value * / $a = array ("one "= 1, "two" = 2, "three "= 3, "seventeen" = 17); foreach($a as $k = $v) {print "\$a[$k] = $v.\n";} / * foreach example 4: multi-dimensional arrays * / $a[0][0] = "a"; $a[0][1] = "b"; $a[1][0] = "y"; $a[1][1] = "z"; foreach($a as $v1) {foreach ($v1 as $v2) {print "$v2\n";}} / * foreach example 5: dynamic arrays * / foreach(array(1, 2, 3, 4, 5) as $v) {print "$v\n";}
/* foreach example 1: value only * / $a = array (1, 2, 3, 17); foreach ($a as $v) {print "current value of \$a: $v.\n";} / * foreach example 2: value (with key printed for illustration) * / $a = array (1, 2, 3, 17); $i = 0; / * for illustrative purposes only * / foreach($a as $v) {print "\$a[$i] = $v.\n";} / * foreach example 3: key and value * / $a = array ("one "= 1, "two" = 2, "three "= 3, "seventeen" = 17); foreach($a as $k = $v) {print "\$a[$k] = $v.\n";} / * foreach example 4: multi-dimensional arrays * / $a[0][0] = "a"; $a[0][1] = "b"; $a[1][0] = "y"; $a[1][1] = "z"; foreach($a as $v1) {foreach ($v1 as $v2) {print "$v2\n";}} / * foreach example 5: dynamic arrays * / foreach(array(1, 2, 3, 4, 5) as $v) {print "$v\n";}
Laatste Update: 2011-10-24
Gebruiksfrequentie: 1
Kwaliteit:
Waarschuwing: Bevat onzichtbare HTML-opmaak