We help IT Professionals succeed at work.
Get Started

PHP Strings into values

erzoolander
erzoolander asked
on
96 Views
Last Modified: 2015-10-06
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!
Comment
Watch Question
Most Valuable Expert 2011
Author of the Year 2014
Commented:
This problem has been solved!
Unlock 2 Answers and 3 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE