Re: Sub Strings
| From: | David Robley | Date: | Mon, 11 Dec 2000 23:29:01 +0000 |
| Subject: | Re: Sub Strings | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29782@lists.php.net to get a copy of this message | ||
On Tue, 12 Dec 2000, shawn wrote:
> I have a string in the following format: "-rw-rw-r-- 1 orther site2
> 19902 Aug 28 16:31 feedbackform.php3"
>
> I want to get the name only which is the last text of the string. Is
> there anyway to count the 8 spaces (i.e. " ") to the right and get
> everything after that?
You could use explode and then grab the last (8th) element in the array -
but could you not use the php file and directory functions.
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA