我想用"|"替换":" 在这种情况下:
$path="C:/example";
我想要$path像"C|/example"
$path
"C|/example"
我在尝试 preg_replace('/:/',"|", $path);
preg_replace('/:/',"|", $path);
php pipe preg-replace
php ×1
pipe ×1
preg-replace ×1