In creating automatic emails certain parts of the email need to be replaced with stored data.
eg. Dear %first_name% %surname%
, Thanks for attending the %place_name%
.
This could be done with a string replace for each of them, but there must be a faster method.
Assuming that the variable name is identical to what we want from the system eg. %first_name%
should be replaced with $user['first_name']
etc....