Jump to content

Remove Some Text From Variable


TecTao

Recommended Posts

I'm using an upload application putting images in a directory and writing the image name to a database table.

 

The image name uploaded includes the directory.  An example would be upload/image1.jpg.

 

Either on the upload or when I call the variable, I want to remove upload/ to show only the image file name.

 

Any help or ideas?

 

Thanks...

Link to comment
https://forums.phpfreaks.com/topic/167739-remove-some-text-from-variable/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.