Professional Documents
Culture Documents
Presentation 1
Presentation 1
submitted by
• Introduction
• Uses of PHP
• PHP File
• PHP Syntax
• Echo Function
• Comment in PHP
INTRODUCTION
• What is PHP?
• PHP stands for PHP Hypertext Preprocessor.
• It is a server sites scripting language for making dynamic and interactive
webpages.
• It was created by RasmusLerdorf in 1994.
USES OF PHP
• example:Sample.php
<?php
echo (“Hello World!”);
?>
Output: Hello World!
COMMENT IN PHP
• A comment is the portion of a program that exists only for the human reader and
stripped out before displaying the programs result.
• There are two commenting formats in PHP −
• Single-line comments:
• Example- #this is a single line comment.
// this is a single line comment
• Multi line comment:
• Example- /*
this is a multi line comment
used in php
*/
• Example1: Sample.php
<?php
//echo (‘Hello World!’);
echo (‘Hello World!’);
?>
• Example2:sample.php
<?php
/*
Learning php is very interesting
I am enjoying
echo (‘Happy!Happy!’);
*/
?>
THANK YOU