From professional translators, enterprises, web pages and freely available translation repositories.
see also shuffle() and foreach.
see shuffle() for another example of its use.
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
this means that you do not need to call reset() before a foreach loop.
הערה: כאשר מתחיל ביצוע לולאת foreach, ערכו של המצביע הפנימי מאותחל לאבר הראשון במערך. כלומר, אין צורך לבצע קריאה לפונקציה reset() לפני לולאת foreach.
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
break ends execution of the current for, foreach while, do..while or switch structure.
פקודת break תגרום לעצירת הריצה של מבנה הבקרה הנוכחי מסוג for, foreach while, do..while או switch.
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
assuming the foreach loop runs to completion, the array 's internal pointer will be at the end of the array.
הלולאות הבאות זהות מבחינה פונקציונאלית:
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
see also key(), list(), current(), reset(), next(), prev(), and foreach.
see also key(), list(), current(), reset(), next(), prev(), and foreach().
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
foreach ($_post as $var = $value) {echo "$var = $value br \n";}
foreach ($http_post_vars as $var = $value) {echo "$var = $value br \n";}
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
Warning: Contains invisible HTML formatting
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, אך הוא לא נרשם להצטרף אליו.
Last Update: 2016-03-03
Usage Frequency: 2
Quality:
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().
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
/* 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";}
Last Update: 2011-10-24
Usage Frequency: 1
Quality:
Warning: Contains invisible HTML formatting