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; }.
確定! 回上一頁