note 23116 added to function.stat
| From: | jstuckeyATthehousecompanyDOTcom@php.net | Date: | Tue, 09 Jul 2002 21:27:29 +0000 |
| Subject: | note 23116 added to function.stat | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32819@lists.php.net to get a copy of this message | ||
it's probably more readable to just use the associative key instead of the numeric index.
it'll also save you some head-scratching. for instance:
$info = stat('path/file');
echo $info[4];
echo $info['uid'];
will both output the same thing. using the print_r() function is really pretty awesome for
error-testing arrays just like this one. just be sure to surround it in <PRE> tags if you are
sending output to a browser.
--
http://www.php.net/manual/en/function.stat.php
http://master.php.net/manage/user-notes.php?action=edit+23116
http://master.php.net/manage/user-notes.php?action=delete+23116
http://master.php.net/manage/user-notes.php?action=reject+23116