JSON API - replaceVariableText

replaceVariableText

PREMIUM TRIAL / ADVANCED

Replaces placeholder variables with text.

Note

You are reading the JSON API documentation. For the PHP API method please go to replaceVariableText.

JSON data
Key Description
variables Array with the names of the placeholder template variables as keys and the plain text that should replace them as values.
target sheets (default) [sharedStrings XML content], headers, footers, comments.
Code samples

Example #1

A template can be a local file, a Base64 string, or a remote file.

Release notes
  • phpxlsx 6.0:
    • new action.