Example This code adds 5 to each element of an array: for ($i=0; $i<$#array; $i++) { $array[$i] += 5; }