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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -