<?php function clean_link($a) { return "change"; } function run($str) { $eval_links = '$link = clean_link("$0")'; return preg_replace_callback('{tst}i',function ($matches) use ($eval_links) { return $link = clean_link($matches[0]); },$str); } echo run('test');
You have javascript disabled. You will not be able to edit any code.