İngilizce

PHP Loops
PHP loops are used to execute the same block of code again and again, as long as a certain condition is true.

In PHP, we have the following loop types:

while - loops through a block of code as long as the specified condition is true
do...while - loops through a block of code once, and then repeats the loop as long as the specified condition is true
for - loops through a block of code a specified number of times
foreach - loops through a block of code for each element in an array
The following chapters will explain and give examples of each loop type.

Türkçe

PHP Döngüleri
PHP döngüleri, belirli bir koşul doğru olduğu sürece aynı kod bloğunu tekrar tekrar çalıştırmak için kullanılır.

PHP'de aşağıdaki döngü türleri vardır:

while - Belirtilen koşul doğru olduğu sürece bir kod bloğunu tekrar tekrar çalıştırır
do...while - Bir kod bloğunu bir kez çalıştırır ve ardından belirtilen koşul doğru olduğu sürece döngüyü tekrarlar
for - Bir kod bloğunu belirtilen sayıda tekrar çalıştırır
foreach - Bir dizideki her eleman için bir kod bloğunu çalıştırır
Aşağıdaki bölümler her döngü türünü açıklayacak ve örnekler verecektir.

(5000 karakter kaldı)
İngilizce
Türkçe

İçindekiler

Son çeviriler

devamını göster›
ADS - REKLAMLAR