English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a small script that reads all of the image files from a directory, and the directory contains images and thumbnails, the images are named img.jpg and the thumbs img-tn.jpg I do not wish for the script to remove "-tn" for when I want to display or link to the larger images. Is there a function that can do this? (Note that not all of the filenames will be identical in size, but the thumbnails all end with -tn)

2007-02-05 04:20:19 · 1 answers · asked by toko 3 in Computers & Internet Programming & Design

1 answers

Strictly speaking I'm no expert but what about two substr's followed by a concatenation?

2007-02-05 04:35:52 · answer #1 · answered by fjpoblam 7 · 0 0

fedest.com, questions and answers