php tutorials for beginners full||php tutorial in hindi||php code||php project||loop||for||foreach
#PGTCOMPUTER #phploop #foreach #for #factorial
#navodaya2020
#computerteacher
#kvscomputerteacher
#rajsthanpatwari
#rajsthanconstable
#bank_PO
#ssc_exam
#ibps
#राजस्थानपटवारीपरीक्षा
#राजस्थानकॉन्स्टेबलभर्तीपरीक्षा
#computerteachervacancy2020
What is email
WHAT IS protocol
How to USE email protocol
#computer
#information technology
#RKCL
#CBSE
#RBSE
#phptutorial #website # beginners #php #hindi # hanumankhatore #phpproject #phpfullcourse
Hanuman khator channel को subscribe करना ना भूले।
इतने प्रकार के telnet protocol नही देखे होंगे|| types of telnet protocol in hindi||
WHATSAPP NO 9828128420 FOR FREE COUNSELING IN sriganganagar
Computer classes| most 5 questions|| BCA||BTech||MSc||MCA
New update 2020
PGT COMPUTER TEACHER
Telnet protocol in hindi||Telnet protocol in computer network ||what is telnet ||easily explained
Operating system is linux
Computer teacher vacancy in rajasthan 2020
Rajasthan patwari bharti 2020
What is computer
How to subscribe
1. Youtube को open करो।
2. Hanuman khator टाइप करो।
3.subscribe का बटन दबाए।
PHP - Loop Types
Loops in PHP are used to execute the same block of code a specified number of times. 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.
• foreach − loops through a block of code for each element in an array.
We will discuss about continue and break keywords used to control the loops execution.
The for loop statement
HERE,
• “for…{…}” is the loop block
• “initialize” usually an integer; it is used to set the counter’s initial value.
• “condition” the condition that is evaluated for each php execution. If it evaluates to true then execution of the for... loop is terminated. If it evaluates to false, the execution of the for... loop continues.
• “increment” is used to increment the initial value of counter integer
The for statement is used when you know how many times you want to execute a statement or a block of statements.
Syntax
for (initialization; condition; increment){
code to be executed;
}
The initializer is used to set the start value for the counter of the number of loop iterations. A variable may be declared here for this purpose and it is traditional to name it $i.
Example
The following example makes five iterations and changes the assigned value of two variables on each pass of the loop −
For Each loop
The php foreach loop is used to iterate through array values. It has the following basic syntax
?php
foreach($array_variable as $array_values){
block of code to be executed
}
HERE,
• “foreach(…){…}” is the foreach php loop block code
• “$array_data” is the array variable to be looped through
• “$array_value “ is the temporary variable that holds the current array item values.
• “block of code…” is the piece of code that operates on the array values
How it works The flowchart shown below illustrates how the for… each… loop works
Practical examples
The code below uses for… each loop to read and print the elements of an array.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «php tutorials for beginners full||php tutorial in hindi||php code||php project||loop||for||foreach», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.