PHP/Basic Code
From r00tedvw.com wiki
(Difference between revisions)
(Created page with "==Basics== ===delimiters - start & stop=== ;<?php :all php code begins with this. ;?> :all php code ends with this") |
|||
Line 5: | Line 5: | ||
;?> | ;?> | ||
:all php code ends with this | :all php code ends with this | ||
+ | ===output text=== | ||
+ | ;echo | ||
+ | :just like with scripting, '''echo''' can be used to output text | ||
+ | <nowiki>ie. | ||
+ | <p> | ||
+ | <?php | ||
+ | echo "My first line of PHP!"; | ||
+ | ?> | ||
+ | </p></nowiki> |
Revision as of 00:21, 26 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>