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!
PHP

Avatar of undefined
Last Comment
erzoolander

8/22/2022 - Mon
SOLUTION
Julian Hansen

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Ray Paseur

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
erzoolander

ASKER
Thanks!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck