PHP


Welcome to PHP Tutorials for Beginners. PHP allows you to create very simple web pages with dynamic content to full-featured web applications that connect to back-end databases. If you use HTML to develop websites, PHP will be a next good step for you. You should have basic knowledge of HTML and CSS.

What Is PHP?

PHP stands for Hypertext Preprocessor and is a server-side language. This means that the script is run on your web server, not on the user's browser, so you do not need to worry about compatibility issues. PHP is quickly becoming one of the most popular scripting languages on the internet.

Why PHP?

The Internet is in a continual state of flux, change and evolution. From the static HTML pages that were so popular in the early days of the Internet, webpages have evolved into more dynamic pages using PHP and SQL., To get an idea of PHP’s growth, five years ago, PHP was used on 2 million sites, and today PHP is used on over 20 million.

•           PHP is simple and easy to learn.
•           Open Source.
•           Cross Platform.

Declaring PHP

PHP scripts are always enclosed in between two PHP tags. This tells server to parse the information between them as PHP. The syntax is as follows:

<?php

   PHP Code Here

?>

PHP Variables:-

PHP Variables starts with a $ sign, followed by the name of the variable.
A variable name should not contain spaces.
The name of the variable must begin with alphabate or underscore.
Variable names are case sensitive (A and a are different variables)

<?php
    $str="PHP Code For Beginers!";
    $a=16;
    $p="Codeigniter Examples";
?>

You can also see brief history of php.

1 comment: