PHP

PHP Array Length for Loop1 min read

In PHP, you can read the indexed elements in the array sequentially using the array length.

The count function is used to read the number of elements in the array. The example below is used to read an array of indexes.




Output:

 

Leave a Comment