PHP
$my_arr1 = array("Hello", "Home", "Good");
PHP
$my_arr1[] = "Hello";
$my_arr1[] = "Home";
$my_arr1[] = "Good";
PHP
$myCount = count($my_arr1);
// $myCount = 3
PHP
for ($i=0; $i<count($my_arr1); $i++)
{
$my_element = $my_arr1[$i];
// on first iteration
// $my_element = "Hello"
// on second iteration
// $my_element = "Home"
// on third iteration
// $my_element = "Good"
}