<?php $str = '%%ANCHOR%% is een %%LINK%%'; function replace_str($str) { $str = str_replace('%%ANCHOR%%', 'test', $str); $str = str_replace('%%LINK%%', 'link', $str); return $str; } echo replace_str($str);
You have javascript disabled. You will not be able to edit any code.