pipe - Replace ":" with "|" php -


i want replace ":" "|" in case:

$path="c:/example"; 

i want $path "c|/example"

i trying preg_replace('/:/',"|", $path);

$path = str_replace(':', '|', $path); 

http://php.net/manual/en/function.str-replace.php


Comments

Popular posts from this blog

java - Unable to make sub reports with Jasper -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -

Save and close a word document by giving a name in R -