Re: HELP! printing Arrays

From: Date: Wed, 03 Mar 2004 23:57:15 +0000
Subject: Re: HELP! printing Arrays
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-179389@lists.php.net to get a copy of this message
foreach($file as $value ){ print "$value<br>"; } > // This will print first and sixth line from the text file: > $file = file("people.txt"); > print "$file[0]<br>"; > print "$file[6]<br>"; > > // But how to print all the lines from [0] to [6] ? > // Hope you understood my problem.

« previous php.general (#179389) next »