What is PHP ?

What is PHPPHP is a widely-used open source general-purpose scripting language that is especially suited for web development. It’s free to download and easily can use. PHP stands for Hypertext Pre Processor.

PHP was developed by Rasmus Lerdorf and developed as Open Source and it is a open source technology.

To describe a php page we have to put file extension .php, or if you use any software like dreamweaver or notepad plus, they will auto create an extension of .php. PHP is powerful scripting language for develop a dynamic websites.

A PHP script starts with <?php and ends with ?>:

EXAMPLE 1 :

<html>
<body>

<?php
echo “Hello World”;
?>

</body>
</html>

Output : Hello World

Note : echo is used for print the value.


EXAMPLE 2 :

<html>
<body>

<?php

$ontime=30;
echo $ontime;
?>

</body>
</html>

Output : 30

Note : echo is used for print the value. $ sign is variable in php language, $ (variable) is used for transfer the value from one place to another place.

Yogesh Khanna

onTime IT Solution always happy to serve you in Information Technology (IT). Learn HTML, CSS, Javascript, PHP, Android, Digital Marketing, Latest IT News and many more.

Leave a Reply

Your email address will not be published. Required fields are marked *