Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

split file name into different values

Status
Not open for further replies.

Brianfree

Programmer
Feb 6, 2008
220
GB
Hello, I need to write some php code to display all images that are in a folder. For each image, I need to display certain information against each image...

Fir example, I have images that are named as follows...

SO12345_BOX01_LAYER_01_DT20201016155402.jpg

I need to separate the values out of the name into..

SO = SO12345
BOX = BOX01
LAYER = LAYER_01
DATETIME = DT20201016155402

Please can anyone advise?

Many thanks

BF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top