Code: Select all
function replaceTest() {
print "This is a test - YO";
}Code: Select all
$page['page_text'] = preg_replace('#\[replace]#i', replaceTest(),$page['page_text']);Code: Select all
<div>This this the top ...</div>
<div>&nbsp;</div>
<div>їreplace]</div>
<div>&nbsp;</div>
<div>This is the bottom</div>Any ideas on how to get the function to call in the correct place??This is a test - YO
This this the top ...
This is the bottom
Thanks in advance!
Tim