I'm trying to $var = str_replace('\','/',$var); and writes a mistake
|
2 answers
- oneIt would be nice to explain why double slash. Why single gives an error. - cache
- oneSo the source is enSO, not the manual. It is clear - uorypm
|
the \ sign means shielding of characters - therefore it gives an error, in this case \ it will show that the second slash should be regarded as a normal character.
|
$var = str_replace('\\','/',$var);- PinkTux