- simple and easy to understand.
- derived from many languages but most of it were from C and some from Perl.
- its object-oriented syntax were patterned from Java and C++.
Source Files and PHP Tags
PHP code can be inserted directly into a text file using a special set of tags; the interpreter will then output any text outside the tags as-is, and execute the code that is between the tags.
4 Types of Tags
- Standard Tags
<?php
... code
?> - Short Tags
<?
... code
?>
<?= $variable ?> - Script Tags
<script language="php">
... code
</script> - ASP Tags
<%
... code
%>
No comments:
Post a Comment