PHPWord
PHPWord copied to clipboard
Nesting Block Variables
Is there a way to nest Block-Variables?
I think about a usage like this:
${user} ${username} ${comments} ${text} ${/comments} ${/user}
So i get all user and for each user all comments. Something like a For Each Loop in another For Each Loop.
same question
My workaround is to first replace user and replace the comment placeholder with comment<i>
and than replace the comment<i>
blocks