Subject: PHP

For Loop with Array

Create an array $arr = [2, 4, 6, 8, 10].

Use a for loop to print each element of the array.

Select file or drag and drop

PNG, JPG, SVG

Preview