Forum


Replies: 2   Views: 3765
Using dollar signs in document
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 PeerBr  · 23-11-2012 - 14:00

Hi,

I am having difficulties using PHPDocx. I need to generate documents that contain dollar signs to denote currencies. Actually, I have something like:

[code]The final price is: $FINALPRICE$ R$, please pay until $DATE$[/code]

where R$ would be Brazilian Reais. However, PHPDocx starts a new variable block after the last $, and mixes up subsequent variables.

Besides writing the name of the currency, which is odd and not common practice in Brazil, what can I do? Imho, the correct behaviour would be to disregard variable names that have spaces an them. That would settle it.

Thank you in advance,
Holger