What is Php

What is Php ?


PHP is a Server Side Scripting Language. PHP is used to develop Dynamic Web Pages. 
PHP is a Scripting language used to control Web Applications and Web Page in Server Side

The most popular scripting language used on PHP Web is Using PHP, you can create a
 User Page and Login Page. You can also create a forum using PHP.

PHP Advantages : Let us learn the php advantages with php training institute in Chandigarh.

  1. Open source - Open source - PHP is uninhibitedly accessible for utilize. The people
     group of PHP Open Source Developers gives specialized help and is consistently 
    enhancing Core PHP Functionalities.

  1. Cross-Platform - Provides High Consistency such as PHP Leading Operating Systems
     and Web Servers so that it can easily be deployed in many different platforms. 
    PHP Scripts can run in operating systems such as Linux, Windows, Solaris, OpenBSD,
     Mac OSX etc. and can also provide support for all major Web servers like Apache, IIS, 
    iPlanet etc.

  1. Power - Many Web Tasks can now easily be done using PHP. Presently we can create 
    from little sites with extensive Business and Organizational Websites Informative Forums,
     Chatting Platforms, CRM Solutions, E-Commerce Shopping Carts, Community Websites,
     e-Business, Shopping Carts and Huge

  1. User Friendly - Easy to use PHP C gives more adaptability than C, C and ASP and enables
     increment to movement on the site

  1. Quick - PHP has been designed to work well with Web and thus things like manufacturing  
    GET and POST and working with HTML and URLs are Manufactured in PHP Language.
PHP training in chandigarh

PHP Disadvantages

  1. PHP is not suitable for large applications It is difficult to maintain it because it is not very 
    modular.

  1. PHP Framework has a Bad Error Handling Method. This is not the proper solution for PHP
     Developers, so it is a problem with the PHP Developer.

Introduction of Php : PHP (Hypertext Preprocessor) is an open-source HTML-embedded
 server-side scripting language that is used to make web applications dynamic and interactive and 
is also used as a normal programming language.

Popular features of PHP

  1. PHP is the easiest to use for any newcomer because advanced features and professional 
    programming have also been added to it.

  1. PHP is easy to learn and runs efficiently on the server side too.

  1. PHP works on many operating systems like Linux, Windows, Mac OS X and many others.

  1. PHP supports many databases such as MySQL, MS-SQL, Oracle, Sybase, PostgreSQL.

  1. PHP website takes very little time to create

PHP Hello World Example :

<! DOCTYPE html>
<html>
  <head>
     <title> PHP Hello World Example </ title>
  </ head>
  <body>
  <? php
     echo "Hello World ...!";
     echo "This is basic example";
  ?>
  </ body>
</ html>

If you are in chandigarh and looking best PHP Training In Chandigarh than Join Cbitss Technologies
 . CBitss is one of the best training institute in chandigarh...
PHP Variables

There is a Holder for a Variable Data Type. In this way, contingent upon its write, one can hold
 the assets of the Variable Numbers, Strings, Booleans, Objects or it can NULL.

All the variables in PHP start with a sign "$" and in this, value can be assigned using "=" operator.
Dollar Sign isn't actually a piece of the Variable's name however it is important to perceive such
 factors as the main character of PHP Parser.

One more important thing in PHP is that all the statements have a semicolon ";" Should end with
 the same. In PHP, we don't need to determine the sort of factor as it takes the Data write from
 Assigned Value.

To declare a variable, you must include it in your script. You can Declare a Variable and assign 
it to the same Statement with a value.
Rules for Variable Declaration

   Variable starts with $ sign and with Variable Name

   Variable starts with the Letter or Underscore sign followed by Underscore Number or Characters.

Variable Numbers do not start with

Factors can be characterized utilizing alphanumeric characters and just by Underscores.
 There is nothing with the exception of Scope just Rules when the names of two better places 
have a similar significance.

PHP Variable Scope

There is nothing with the exception of Scope just Rules when the names of two better places 
have a similar importance. There are three Variable Scope to characterize Places in PHP.

  1.    Local Variable Scope

  1.    Global Variable Scope
  1.    Static Variable Scope

Local Variable Scope

Local Variable is defined and accessed within the Function. This is not accessible beyond the
 Function.


Global Variable Scope

The Global Variable is defined beyond the Function. You can use Global Variable anywhere in 
the script outside the Function. But the Global Variable can also be accessed inside the 
Function before using the Keyword Global before Declaring the Variable.

Static Variable Scope

Generally, when a Function is completed / executed, all the variables are deleted. Although 
sometimes we have a Local Variables.

0 comments:

Post a Comment