Need help on backslashes

Started by chubbyboy, March 12, 2006, 09:04:51 AM

Previous topic - Next topic

chubbyboy

I know backslash (/) is used for PHP to disregard quotes ('), but I've also noticed in following examples

<br />
alt="" />
alt="" /

that "/" is used in various other syntax. Can anyone here explain or refer me to the relevant tutorial on when to use "/" in PHP. I am trying to converting some HTML codes into PHP format.

Thanks.

kegobeer

\ is used for escaping characters, not /.

You should go to www.php.net and read the online documentation.  Look up the echo statement; how to escape characters is explained.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

Parham


Advertisement: