I'm trying to get an array to read the text from a file, and so far it isn't working. If you can help me, respond. <snippet> $fp = fopen ("./file.txt", "r"); $text = array ($fp); sort ($text); reset ($text); while (list ($key, $val) = each ($text)) { echo "[".$key."] ".$val; echo "<br>"; } fclose ($fp); </snippet> Currently all that does is print out "[0] Resource id #1" Any help is GREATLY appreciated. Thanks in advance.
- [PHP] Array David Tandberg-Johansen
- Re: [PHP] Array Ankur Verma
- Re: [PHP] Array Philip Olson
- RE: [PHP] Array Dallas Kropka
- [PHP] array andreas \(@work\)
- RE: [PHP] array ..s.c.o.t.t..
- [PHP] array Marco Aurélio
- Re: [PHP] array Tanya Brethour
- RE: [PHP] array James Atkinson
- Re: [PHP] array Chris Herring
- Re: [PHP] array David Robley
- [PHP] array Jeremy Morano
- Re: [PHP] array Jason G.
- [PHP] Array Roman Duriancik
- Re: [PHP] Array Hiroshi Ayukawa
- RE: [PHP] Array Ford, Mike [LSS]
- [PHP] Array Mako Shark
- Re: [PHP] Array Jason Wong
- Re: [PHP] Array Andy Turegano
- RE: [PHP] Array Quentin Bennett