Answers for "php forach"

PHP
1

php for each schleife

foreach ($name as $key => $value) {
    echo ("Position {$key} enthält {$value}. ");
}
Posted by: Guest on May-29-2020
3

foreach in php

<?php
// Declare an array 
$arr = array("green", "blue", "pink", "white");  
  
// Loop through the array elements 
foreach ($arr as $element) { 
    echo "$element "; 
} 
?>
Posted by: Guest on July-09-2020

Browse Popular Code Answers by Language