Im adding a string of a path to a variable, its pretty basic. Please see my image below:
The Problem
$target_dir = "C\wamp\www\test\img\userPics";
This above code works with no syntax errors BUT when I add a last backslash to the end of the string like so:
$target_dir = "C\wamp\www\test\img\userPics\";
I get all the syntax errors as you can see in image below.
Can anyone please explain to me why Im getting this error when adding a slash to the string as you can see on line 65?