php array exercises code example
Example: most complicated task ina array in php
<?php$array = array();$array[] = 1;$array[] = 2; // get the first item in the arrayprint $array[0]; // prints 1 // get the last item in the arrayprint $array[count($array) - 1]; // prints 2