Code: Select all
/\{{$template_variable}\}/Moderator: General Moderators
Code: Select all
/\{{$template_variable}\}/Code: Select all
<?php
$search = array('{CONTENT}', '{TITLE}');
$replace = array('Hello', 'goodbye');
$subject = array(
'You say {TITLE} and I say {CONTENT}',
'{CONTENT} {CONTENT}',
'I don''t know why you say {TITLE}, I say {CONTENT}',
'{CONTENT} {CONTENT}',
'I don''t know why you say {TITLE}, I say {CONTENT}.'
);
$subject = str_replace($search, $replace, $subject);
print('<pre>'); print_r($subject); print('</pre>');
?>