My string looks like:
$fullPath = $dirName . "/" . $file;
If I replace / with \, it gives error: "Expecting identifier or variable". I want to store in the latter way itself. How to override anything coming in between?
My string looks like:
$fullPath = $dirName . "/" . $file;
If I replace / with \, it gives error: "Expecting identifier or variable". I want to store in the latter way itself. How to override anything coming in between?
u need "\" cause \ is an escape character
interestingly : i cant put \ \ on SO as well .. so just remove the space "\ \"
Or wrap \ in single quotes, i.e. '\' since single quotes mean no escaping characters.