PHP/Basic Code
From r00tedvw.com wiki
(Difference between revisions)
Line 12: | Line 12: | ||
<?php | <?php | ||
echo "My first line of PHP!"; | echo "My first line of PHP!"; | ||
− | + | ?> | |
− | + | </p></nowiki> |
Revision as of 23:22, 25 December 2015
Basics
delimiters - start & stop
- <?php
- all php code begins with this.
- ?>
- all php code ends with this
output text
- echo
- just like with scripting, echo can be used to output text
ie. <p> <?php echo "My first line of PHP!"; ?> </p>