Hello! You wrote:

>> Hi! I have this script and wonder how to change
>> it to get it list only number 2 to number 6 and
>> not each?

>> while (list ($key,$val) = each ($headers)) {
>> print "<p><b>"."$val"."</b></p>";
>>  }

while (list ($key,$val) = each ($headers) and
       $key <= 6 and
       $key >= 2) {

   print "<p><b>"."$val"."</b></p>";
}

Eh?

-- 
Andrew Perevodchik
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to