Re: [PHP] HELP! printing Arrays

2004-03-03 Thread Ryan A
On 3/4/2004 1:32:42 AM, Ben Ramsey ([EMAIL PROTECTED]) wrote: > I know that others have already helped you learn out to print out an > array, but you can also use print_r($array); to print out the array. > It's not useful for the end-user of your application, but it can help > you out as you're >

Re: [PHP] HELP! printing Arrays

2004-03-03 Thread Ben Ramsey
I know that others have already helped you learn out to print out an array, but you can also use print_r($array); to print out the array. It's not useful for the end-user of your application, but it can help you out as you're programming. -- Regards, Ben Ramsey http://benramsey.com http://ww

Re: [PHP] HELP! printing Arrays

2004-03-03 Thread Brian V Bonini
On Wed, 2004-03-03 at 18:30, Labunski wrote: > Hello, > > // This will print first and sixth line from the text file: > $file = file("people.txt"); > print "$file[0]"; > print "$file[6]"; > > // But how to print all the lines from [0] to [6] ? > // Hope you understood my problem. > for($i=0;

Re: [PHP] HELP! printing Arrays

2004-03-03 Thread Labunski
Your script is working perfectly, thanks for teaching me! Lab. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HELP! printing Arrays

2004-03-03 Thread Labunski
Thanks! It was very useful! Lab. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HELP! printing Arrays

2004-03-03 Thread Daniel Clark
foreach($file as $value ){ print "$value"; } > // This will print first and sixth line from the text file: > $file = file("people.txt"); > print "$file[0]"; > print "$file[6]"; > > // But how to print all the lines from [0] to [6] ? > // Hope you understood my problem. -- PHP General Maili

RE: [PHP] HELP! printing Arrays

2004-03-03 Thread Chris W. Parker
Labunski on Wednesday, March 03, 2004 3:31 PM said: > Hello, > > // This will print first and sixth line from the text file: > $file = file("people.txt"); > print "$file[0]"; > print "$file[6]"; actually that will print the first and seventh line of the file...