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 - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -