lulz.php
<?php // Initialise our replacement string. $result = $template; foreach ($data as $key => $value) { // Work out the key that we want to replace. $key = '%{'.$key.'}'; // Make it so! }; // Here you are, sir. return $result; }
<?php // Initialise our replacement string. $result = $template; foreach ($data as $key => $value) { // Work out the key that we want to replace. $key = '%{'.$key.'}'; // Make it so! }; // Here you are, sir. return $result; }