Kaylyn's String Replace Example

This example shows how tokens in a text document can be found and replaced with PHP variables.

Original Text

 Thank you for purchasing your tickets!
Please print this out and save as a record.

Concert Title: [TITLE]

Cost: $ [COST]

Concert Dates: [DATES]

Please contact the ticket office if you have any questions.

Thanks:
Kaylyn 

Text after replaced text

 Thank you for purchasing your tickets!
Please print this out and save as a record.

Concert Title: Songs to Sing to Your Kids: The Lullaby Series

Cost: $ 901.45

Concert Dates: Nov 20-25, 2024

Please contact the ticket office if you have any questions.

Thanks:
Kaylyn