Code: Select all
$repThis = "x" . $currX . " y" . $currY;
$repWith = "xp$repWithX yp$repWithY";
$test = preg_replace($repThis, $repWith, $test, 1);Moderator: General Moderators
Code: Select all
$repThis = "x" . $currX . " y" . $currY;
$repWith = "xp$repWithX yp$repWithY";
$test = preg_replace($repThis, $repWith, $test, 1);Code: Select all
$repThis = '/x' . $currX . " y" . $currY.'/';