|
PHP code is imbedded in your HTML
pages, so there's no need for a special development
environment or IDE. You start a block of PHP code
with <?php and end it with ?>. (You can also
configure PHP to use ASP-style <% %> tags
or even <SCRIPT LANGUAGE="php"></SCRIPT>.)
The PHP engine processes everything between those
tags.
PHP's language syntax is similar
to C's and Perl's. You don't have to declare variables
before you use them, and it's easy to create arrays
and hashes (associative arrays). PHP even has some
rudimentary object-oriented features, providing
a helpful way to organize and encapsulate your
code.
PHP files should have an identifying
extension so the server will know to execute the
code - .phtml or .php
|