escaping forward slashes

Associate
Joined
11 Oct 2008
Posts
268
Hey, i have managed to escape most of this echo but I cannot figure out the forward slashes that come before and after $dir.

Anybody know how i escape forward slashes.

Code:
echo "[ - <a href='". /$dir/ ."game_play.php'>Play</a> - ]"; // Displayed if connection OK.
 
PHP:
echo "[ - <a href='/". $dir ."/game_play.php'>Play</a> - ]"; // Displayed if connection OK.
?? What do you mean by escape the forward slashes?

what's it look like and what's it supposed to look like?
 
Back
Top Bottom