[PHP]: Why "\" gives error while storing it in string?
- by RPK
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?