Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHP Basics

PHP Basics

Puneet Singhal

June 06, 2013
Tweet

More Decks by Puneet Singhal

Other Decks in Technology

Transcript

  1. PHP Intro What is PHP? • PHP stands for PHP:

    Hypertext Preprocessor • PHP is a widely-used, open source scripting language • PHP scripts are executed on the server • PHP is free to download and use
  2. PHP Variables • Give example of int, string, float •

    PHP is a loosely typed language ◦ In the example above, notice that we did not have to tell PHP which data type the variable is. ◦ PHP automatically converts the variables into correct data type ◦ In a strongly typed programming language, we will have to declare (define) the type and name of the variable before using it.
  3. PHP Array • Definition of array is totally changed in

    PHP which we have learned in C/C++, but the concept is still same. • An variable which can hold multiple values. • Types of array:- ◦ Indexed ◦ Associative ◦ Multi-dimensional