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

python - Does anyone know how to configure the hunpos wrapper class on nltk? -

mysql - How to insert just year and month into date field? -