php - How to set ${var_name} -
we developing mail system, , allow user add custom greeting while creating message.. example, check following...
we set variable(var_name) in php.
hello ${var_name}, test message.
we not using framework.
what str_replace
?
$text = str_replace('${var_name}', $var_name, $text);
Comments
Post a Comment