Link to home
Start Free TrialLog in
Avatar of erzoolander
erzoolander

asked on

PHP Strings into values

I have an array with some strings that I would like to extract values from.  The array looks like:

Array
(
    [0] => 09-29-15  11:31AM                55841 amensunset.jpg
    [1] => 09-08-15  01:55PM               260187 firstdayvpk.jpg
    [2] => 09-08-15  02:41PM            556373631 globe.psd
    [3] => 09-29-15  11:31AM               875215 keywestpkg.jpg
    [4] => 09-29-15  11:31AM                57599 revkeywestpkg.jpg
    [5] => 09-29-15  10:58AM               123836 revpizza.jpg
    [6] => 09-29-15  11:31AM                66106 revromancepkg.jpg
    [7] => 09-29-15  11:33AM               102603 revtouristpkg.jpg
    [8] => 09-29-15  11:31AM               310514 romancepkg.jpg
    [9] => 09-29-15  11:15AM               165873 SC1.jpg
    [10] => 09-29-15  11:32AM             12349206 Tarpon Creek 45.jpg
    [11] => 09-29-15  11:32AM             13813169 touristpkg.jpg
    [12] => 09-29-15  11:15AM                26340 wedding.jpg
)

Open in new window


I would like to be able to grab each value...  Date, Time, File Size and name.  How would I best go about doing that?  :)  Some sort of preg_match function?

Thanks in advance!
SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of erzoolander
erzoolander

ASKER

Thanks!