You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- The foreach loop works only on arrays, and is used to loop through each key/value pair in an array.
Syntax :
foreach ($array as $value) {
code to be executed;
}
-->
<?php
$indexArray = ['red','green','blue'];
// For every loop iteration, the value of the current array element is assigned to $value and the array pointer is moved by one, until it reaches the last array element.