Home | Mirror | Search

2. str_replace

$search  = array('one', 'two', 'three');
$replace = array('1',  '2', '3']);
$content =  str_replace($search, $replace, $file_tpl);
		
comments powered by Disqus