Php For ve ForEach

muho61

Paylaşım Ekibi
Üyelik Tarihi
23 Aralık 2020
Mesajlar
262
Beğeniler
2
Ticaret: 0 / 0 / 0
Kod:
<!DOCTYPE html> <html> <body> <?php for ($x = 0; $x <= 10; $x++) {    echo "The number is: $x <br>"; } ?>   </body> </html>


<!DOCTYPE html> <html> <body> <?php $colors = array("red", "green", "blue", "yellow"); foreach ($colors as $value) {    echo "$value <br>"; } ?>   </body> </html>
 
Üst