introduces the PHP basics outlining PHP strengths, weaknesses and also where to get PHP
Enter the "Here Document"
There is a PHP feature called the HERE document (Again I can't get to terms with why they called it the HERE document. What kinda' name is that anywayz?) HERE it is though! This HERE document allows the user to produce output without escaping. This is how it works:
You specify a start line. This is done by putting three less than signs and a LABEL. The LABEL is then followed by all your un-escaped (normal) text (read HTML), and then the LABEL again (This time without the three less thans). This LABEL can be anything you choose for as long it is NOT a PHP reserved word. In our example below we use the label OUTPUT:
print <<<OUTPUT
<html><head></head><body bgcolor="black" text="white">
<h2 align="right">Heading here
All your Other Unescaped Text comes here....
... and it can be veeeeeeeeeeeeeery many lines long.
OUTPUT;
PHP ecommerce web developer India flash website designer India seo
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81