<?php $text = 'Hello {$name} World!!'; $values = array('name' => 'Franz'); $text = preg_replace("/\{(\w+)\}/ie","\$values[\"\\1\"]",$text); echo $text;
You have javascript disabled. You will not be able to edit any code.