Skip to content

Instantly share code, notes, and snippets.

@nikz
Created July 22, 2008 01:17
Show Gist options
  • Save nikz/566 to your computer and use it in GitHub Desktop.
Save nikz/566 to your computer and use it in GitHub Desktop.
foreach($post_params as $key => $value) {
$sanitized_value = sanitize($value);
$regex = '/\<\$' . $key . '\>/';
$template_content = preg_replace($regex, $sanitized_value, $template_content);
}
// lol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment