We're sorry AsposeCloud doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.cloud

Multiple replacements with PHP

Hello,

I am a Rookie at Aspose. I want to Replace multiple items in a Word document (like replace by Joe, replace by Miller and so on).

I use PHP and the SDK.

I am looking for an example with PHP please.

@andre1308

Please note ReplaceText API replaces a single string at a time. However, if you want to replace multiple strings then you may call ReplaceText API multiple times in a batch. Please may please check the batch tests example and amend it as per your requirement. Hopefully, it will help you to accomplish the task.