Home | Mirror | SearchITEYE 博客 | OSChina 博客 | 51CTO 博客

3.2. str_replace

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