Article Keyword Videos to Watch
Website Design
Click on the image to start the video.
|
Related Topics
Images - Links - Articles
Lyon
Related Images
|
PHP basics
PHP basics
You should always begin a PHP page with <?php and end with ?> Your php code should go between <?php and end with ?> . You can for example code php , close , then add html code in between as below. <?php Code ?> We define a variable in PHP as follow, by the way a variable is anything we use as a shortcut to value.
= "hello World"; The above example will print hellow World.
We call a variable by echoing or simply including it in php as follow : echo ; or ; Don't forget to ; at the end of a variable.
Html code here <?php rest of php code and end with ?>
Always save a php page in a .php extention. For example, you save example as example.php, otherwise your php code will not work.
Visit websitedevelopmentanddesign.com for more free web design and development articles
About the Author: Established web designer/developer Visit
websitedevelopmentanddesign.com for low cost web design and developemtn and free tutorials!
|