Hello,
The replaceTableVariable method fills a table replacing the placeholders (adding a new row for each array content cloning the table row). Please check the documentation available on the API documentation page (https://www.phpdocx.com/api-documentation/templates/replace-table-variable-Word-document) and the included samples that detail everything about this method.
The goal of this method (replaceTableVariable) is the following: Replaces a group of variables within a set of table rows. On the practical guide (https://www.phpdocx.com/documentation/practical/adding-content-to-a-template) you can also read about this method and a first sample:
Just like with the lists, you can add tables to the template by making a table with the styles that you want and define a row with the variables to replace. This row will be replaced for as many rows as needed with new values, keeping the original table styles.
cloneBlock allows cloning multiple contents and cloneWordContent allows cloning specific contents based on XPath queries. For your DOCX and table, replaceTableVariable is the recommended method.
Regards.