If I grab data from a column in my database called image_store
such as:
/web/images/data/firstImage.png
/web/images/data/secondImage.png
/web/images/data/thirdImage.png
And I want to populate a setImage function which takes the string after /data/
to set as the fileName and the string before /firstImage.png
as the directory e.g:
$this->setImage('firstImage.png', '/web/images/data/')
Is there a way I can grab the needed information from the string I get back from the database?