Know about Php

What is PHP?

PHP is an acronym for "PHP: Hypertext Preprocessor".PHP is a server-side scripting language designed for web development and  also used as a general-purpose programming language.It is Founded by Rasmus Lerdorf in 1994.Before it is also known as personal home page.Php code is compatible with html and several web development tool,web development frameworks.The Latest Version of php is 7.0.1,in this version many previous bugs that is in version 7.0.0 are resolved or fixed.Php file can contain text,html,css,javascript and php code is executed by server and returned to the browser in html.php code is execute top to bottom and left to right.

Write Your First program in php.

How to print Hello World?

<?php
<html>
<head>Hello World in php</head>
<body>
$variable='hello world';
echo  $variable;
</body>
</html>
?>

Explanation :
php opening and closing tags <?php ?>,in php variables are define with $(dollar) Sign.Here,$variable is variable which contain the hello world value.and echo is function that return output value that is written in quotes or stored in variable.<?php php opening marker.This signals to the php interpreter that code as a php code untill it found closing tag ?>

How Php Works On The Web?

Explanation :
Php Scripts are run on the server.Server Reads the php scripts and perform actions with database structure and returns output in plain html.





Know about Php Know about Php Reviewed by Dhaneshwar on 2:34:00 AM Rating: 5

No comments:

Powered by Blogger.