Forum


Replies: 6   Views: 305
Replacing multiple images
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by fiwoyax200  · 25-04-2024 - 12:22

Thanks for the update.

The number of images can vary depending on the user (i.e. there could be 1 image or 3 images), however, if there were 3 images I was hoping to add them all in the same place in the document which I currently have a placeholder as $IMAGE$.

The code you previously provided would require me to have multiple placeholders 'VAR' and ' NEWVAR', however as I don't always know the number of images for each time the script is executed.

Is there away I could replace $IMAGE$ with multiple images?