|
|
|
|
|
|
|
Re: by get this format my explode file name like this through php [message #175911 is a reply to message #175908] |
Sun, 06 November 2011 00:20 |
Denis McMahon
Messages: 634 Registered: September 2010
Karma: 0
|
Senior Member |
|
|
On Sat, 05 Nov 2011 18:20:30 +0100, Michael Fesser wrote:
> .oO(Denis McMahon)
>
>> On Sat, 05 Nov 2011 06:34:31 -0700, Balazs Nadasdi wrote:
>>
>>> 2. Why do you use
>>> YYYYMMDDHHMMSS? Unix Timestamp?
>>
>> Conjecture - as he's creating a filename, [...]
>
> I understood it that way that he has a filename and wants to split it
> into its parts as described ("explode"). In this case preg_match() or
> sscanf() might help.
Oh. I thought he was trying to create the filename from the data.
If he wants to get the data from the filename, all he needs is a few
http://uk.php.net/manual/en/function.substr.php surely.
$branch = substr(string,start,length);
etc etc etc
Rgds
Denis McMahon
|
|
|