UNIT II---WORKING WITH ARRAYS AND FUNCTIONS
WORKING WITH ARRAYS Arrays are collections of related values. such as the data submitted from a form, the names of students in a class, or the populations of a list of cities.. EXAMPLE You can create an array using the array() function, like this: <? php $array = array (); ?> ARRAY DEFINITION An array is a data structure that stores one or more similar type of values in a single value. If you wish, you may send the desired new elements of the array along as a parameter. * Numeric array * Associative array * Multidimensional array NUMERIC ARRAY These arrays can store numbers, strings and any object but their index will be represented by numbers. By default array index starts from zero. Syntax array (Value1, Value2, ValueN ); Example <? php $subject = array...