May 2003
Intermediate to advanced
592 pages
14h 28m
English
If you’re already tired of creating useless scripts that generate blank pages, rest assured that PHP can do a lot more than, well, nothing. To build dynamic Web sites with PHP, you begin with knowing how to send data to the Web browser. PHP has a number of built-in functions written specifically to accomplish this, the most common being echo() and print().
echo 'Hello, world!'; print "It's nice to see you.";
As you can see from the above, either single or double quotation marks will work (the distinction between the two will be made clear by the chapter’s end). Also note that in PHP all statements (a line of executed code, in layman’s terms) must end with a semicolon.
Looking for an EscapeAs you might discover, ... |
Read now
Unlock full access