<?php function foo($arg){ $var = 'check:'.$arg; echo $var; } preg_replace('/a/', foo("$1"), 'a');
You have javascript disabled. You will not be able to edit any code.