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 -

sql - The object name contains more than the maximum number of prefixes. The maximum is 2 -

Java Web Service Soap fault exception client -