I'm using a variable $date$ in my docx. When using
$docx->replaceVariableByText(array('date'=>'01.01.2014'), $options);
in my script, the content is not available in the document. The $date$ variable is replaced, but the value doesn't appear. The result is the same as if the value was empty.
If I rename the variable e.g. to $dat$, everything works fine. So the var name "date" seems to make the problem.