About us Privacy Disclaimer Contact us
FAQ Help Advertising Feedback
Home Sitemap Search Donate us

  Home > Computer & I'net > Escape Characters...

   Browse by title articles:
   What is hot:

Escape Characters

Operators

Print/Echo

Variables

Numbers - Formatting

Numbers - Math

Selecting and Evaluating Keyphrases for Search Engine Marketing
Email - Multiple Recipients
Five Checks for Web Pages
How To Use PDF Files On The Web
Prev articles12345 6 789101112Next articles



Escape Characters


Computer & I'net articlesEscape Characters

by David Stanley    



Escape characters are small special functions. Most of them help in the visual presentation of the coding rather than the visual part on the web page.

As you have seen, you can easily add in regular HTML coding into the PRINT and ECHO commands. Thus being able to format the webpage contents to your desires. But what about the coding? It seems that a bunch of echo commands will just print out the coding on long continuous lines. Escape characters are here to help.

New Line
Tab
Carriage Return

The newline command is a very commonly used one when formatting the looks of your coding. The tab command is also helpful for those who prefer to use it throughout their coding for a "neater" layout style. The carriage return may come in handy later on when you are dealing with emails and printed materials.

Before :
<?php
echo "This is a test. <br> ";
echo "This is another test.";
?>

Coding Outcome :
This is a test. <br> This is another test.

After :
<?php
echo "This is a test. <br> ";
echo "This is another test.";
?>

Coding Outcome :
This is a test. <br>
This is another test.

Escaping is also used for other purposes like having quotes within a quoted area.




-----------------
Article by David Stanley. Visit his site http://www.htmlite.com. Reprinted with permission.





Spouse Work




  Disclaimer | Privacy | Terms of useCopyright © 2004 Nice2know.com