Re: file function
| From: | Burhan Khalid | Date: | Mon, 11 Jul 2005 06:57:29 +0000 |
| Subject: | Re: file function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-218420@lists.php.net to get a copy of this message | ||
Joseph Lee wrote:
Hi, I tried file() in the following lines: <?php $authFile = file("/tmp/authenticate.txt"); print "authFile = $authFile"; ?> However, it only gave me authFile = Array What's wrong with this file function? I tried single quotes, but got the same answer, too.Nothing. You need to read the documentation. What you probably wanted was: print "authFile = ".implode("",$authFile); or file_get_contents().