Array
Declare
$arr = array();
To push an element
$res_arr_values = array();
while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
$res_arr_values[] = $row;
}
- Not += operator to add
Delete Element
array_aplice()
Removes the elements designated by offset and length from the input array, and replaces them with the elements of the replacement array, if supplied.
array array_splice ( array &$input , int $offset [, int $length = count($input) [, mixed $replacement = array() ]] )
Size of array
for($i = 0; $i < sizeof($huge_array);$i++)
{
code...
}