Answers for "php for eahc"

PHP
0

phph for

for ($i = 1; $i <= 10; $i++) {
    echo $i;
}
Posted by: Guest on September-09-2020
10

php iterate through array

$arr = ['Item 1', 'Item 2', 'Item 3'];

foreach ($arr as $item) {
  var_dump($item);
}
Posted by: Guest on June-01-2020
1

php for each schleife

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

Browse Popular Code Answers by Language