SlideShare a Scribd company logo
The abbreviation PHP initially stood for Personal Homepage. But now it is a recursive
acronym for Hypertext Preprocessor. (It's recursive in the sense that the first word itself
is an abbreviation, so the full meaning doesn't follow the abbreviation.)
The first version of PHP was launched 26 years ago. Now it's on version 8, released in
November 2020, but version 7 remains the most widely used.
PHP runs on the Zend engine, which is the most popular implementation. There are
some other implementations as well, like parrot, HPVM (Hip Hop Virtual Machine), and
Hip Hop, created by Facebook.
PHP is mostly used for making web servers. It runs on the browser and is also capable
of running in the command line. So, if you don't feel like showing your code output in the
browser, you can show it in the i
PHP TRAINING
 PHP String
 A string is a sequence of characters, like "Hello world!".
 A string can be any text inside quotes. You can use single
or double quotes:
 PHP Integer
 An integer data type is a non-decimal number between -
2,147,483,648 and 2,147,483,647.
 Rules for integers:
 An integer must have at least one digit
 An integer must not have a decimal point
 An integer can be either positive or negative
 Integers can be specified in: decimal (base 10),
hexadecimal (base 16), octal (base 8), or binary (base 2)
notation
 PHP Float
 A float (floating point number) is a number with a
decimal point or a number in exponential form.
 PHP Boolean
 A Boolean represents two possible states: TRUE
or FALSE.
 $x = true;
$y = false;
 Booleans are often used in conditional testing.
You will learn more about conditional testing in a
later chapter of this tutorial.
 PHP Array
 An array stores multiple values in one single variable.
 PHP Object
 Classes and objects are the two main aspects of object-oriented
programming.
 A class is a template for objects, and an object is an instance of a class.
 When the individual objects are created, they inherit all the properties
and behaviors from the class, but each object will have different values
for the properties.
 Let's assume we have a class named Car. A Car can have properties like
model, color, etc. We can define variables like $model, $color, and so
on, to hold the values of these properties.
 When the individual objects (Volvo, BMW, Toyota, etc.) are created, they
inherit all the properties and behaviors from the class, but each object
will have different values for the properties.
 If you create a __construct() function, PHP will automatically call this
function when you create an object from a class.
 PHP NULL Value
 Null is a special data type which can have only
one value: NULL.
 A variable of data type NULL is a variable that has
no value assigned to it.
 Tip: If a variable is created without a value, it is
automatically assigned a value of NULL.
 PHP Resource
 The special resource type is not an actual data
type. It is the storing of a reference to functions
and resources external to PHP.
 A common example of using the resource data
type is a database call.
PHP TRAINING
 PHP language :
The name PHP stands for Hypertext Preprocessor and
denotes a server-side scripting language, which
suggests that applications are written thereon run on
web servers and don’t depend upon the online
browser. Syntax of PHP language is analogous to C
language. It is created by Rasmus Lerdorf and
appeared in 1995. PHP is being widely utilized in
developing web applications and became one of the
main languages for developers to make new
applications.
Leading social networking sites like Facebook and
reputed organizations like Harvard University are
both using PHP which makes PHP popular and
increases its credibility.
 PHP is getting used widely in developing web-
based and other applications across all domains.
Few technologies whose development is
supported by PHP are listed below :
 Content Management System.
 Web-based applications and development of
sites.
 E-commerce websites and applications.
 Data Analytics and Representation.
 Processing of Images.
 Graphical interface design-based applications.
 Developing the features of Flash.
 Advantages of PHP :
 The most important advantage of PHP is that it’s open-source and free
from cost. It can be downloaded anywhere and is readily available to use
for events or web applications.
 It is platform-independent. PHP-based applications can run on any OS
like UNIX, Linux, Windows, etc.
 Applications can easily be loaded which are based on PHP and connected
to the database. It’s mainly used due to its faster rate of loading over
slow internet speed than other programming language.
 It has less learning curve because it is simple and straightforward to use.
Someone familiar with C programming can easily work on PHP.
 It is more stable for a few years with the assistance of providing
continuous support to various versions.
 It helps in reusing an equivalent code and not got have to write lengthy
code and sophisticated structure for events of web applications.
 It helps in managing code easily.
 Disadvantages of PHP :
 It is not that secure due to its open-source, because the ASCII
text file is often easily available.
 It is not suitable for giant content-based web applications.
 It has a weak type, which can cause incorrect data and
knowledge to users.
 PHP frameworks got to learn to use PHP built-in
functionalities to avoid writing additional code.
 Using more features of PHP framework and tools cause poor
performance of online applications.
 PHP doesn’t allow change or modification in the core behavior
of online applications.
 The PHP frameworks aren’t equivalent in behavior so does
their performance and features.
 For more information visit our websit
 https://excellenceacademy.co.in/
 931778822

More Related Content

DOCX
PHP Training In Chandigarh.docx
PDF
Essential Guide To Php For All Levels O Adeolu
PPTX
PHP Hypertext Preprocessor
PPTX
Unit 4-6 sem 7 Web Technologies.pptx
PDF
WT_PHP_PART1.pdf
PPT
PDF
chapter 5 Server-Side Scripting (PHP).pdf
PHP Training In Chandigarh.docx
Essential Guide To Php For All Levels O Adeolu
PHP Hypertext Preprocessor
Unit 4-6 sem 7 Web Technologies.pptx
WT_PHP_PART1.pdf
chapter 5 Server-Side Scripting (PHP).pdf

Similar to PHP TRAINING (20)

PPTX
Introduction to PHP.pptx
PPTX
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
PPT
Php unit i
PDF
PHP Web Development.pdf
PDF
Web Design & Development - Session 7
PDF
Introduction of PHP.pdf
PPTX
Web Application Development using PHP Chapter 1
PPTX
Web programming using PHP and Introduction with sample codes
PDF
Summer training report priyanka
PPTX
PHP ITCS 323
PPTX
PHP Basics
PPTX
Php ppt
PPT
PHP MySQL Workshop - facehook
PDF
Object Oriented Programming with Laravel - Session 1
PPT
345345
PPT
ssfsd fsdf ds f
PPT
PPT
IntroductiontoPHP.ppt
PPT
IntroductiontoPHP.ppt
Introduction to PHP.pptx
Unit 5-PHP Declaring variables, data types, array, string, operators, Expres...
Php unit i
PHP Web Development.pdf
Web Design & Development - Session 7
Introduction of PHP.pdf
Web Application Development using PHP Chapter 1
Web programming using PHP and Introduction with sample codes
Summer training report priyanka
PHP ITCS 323
PHP Basics
Php ppt
PHP MySQL Workshop - facehook
Object Oriented Programming with Laravel - Session 1
345345
ssfsd fsdf ds f
IntroductiontoPHP.ppt
IntroductiontoPHP.ppt

Recently uploaded (20)

PDF
01-Introduction-to-Information-Management.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
RMMM.pdf make it easy to upload and study
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Sports Quiz easy sports quiz sports quiz
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Lesson notes of climatology university.
PPTX
Institutional Correction lecture only . . .
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Classroom Observation Tools for Teachers
PPTX
Cell Types and Its function , kingdom of life
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Complications of Minimal Access Surgery at WLH
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
01-Introduction-to-Information-Management.pdf
Microbial disease of the cardiovascular and lymphatic systems
RMMM.pdf make it easy to upload and study
Supply Chain Operations Speaking Notes -ICLT Program
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Sports Quiz easy sports quiz sports quiz
O7-L3 Supply Chain Operations - ICLT Program
Lesson notes of climatology university.
Institutional Correction lecture only . . .
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Classroom Observation Tools for Teachers
Cell Types and Its function , kingdom of life
O5-L3 Freight Transport Ops (International) V1.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Complications of Minimal Access Surgery at WLH
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Final Presentation General Medicine 03-08-2024.pptx

PHP TRAINING

  • 1. The abbreviation PHP initially stood for Personal Homepage. But now it is a recursive acronym for Hypertext Preprocessor. (It's recursive in the sense that the first word itself is an abbreviation, so the full meaning doesn't follow the abbreviation.) The first version of PHP was launched 26 years ago. Now it's on version 8, released in November 2020, but version 7 remains the most widely used. PHP runs on the Zend engine, which is the most popular implementation. There are some other implementations as well, like parrot, HPVM (Hip Hop Virtual Machine), and Hip Hop, created by Facebook. PHP is mostly used for making web servers. It runs on the browser and is also capable of running in the command line. So, if you don't feel like showing your code output in the browser, you can show it in the i
  • 3.  PHP String  A string is a sequence of characters, like "Hello world!".  A string can be any text inside quotes. You can use single or double quotes:  PHP Integer  An integer data type is a non-decimal number between - 2,147,483,648 and 2,147,483,647.  Rules for integers:  An integer must have at least one digit  An integer must not have a decimal point  An integer can be either positive or negative  Integers can be specified in: decimal (base 10), hexadecimal (base 16), octal (base 8), or binary (base 2) notation
  • 4.  PHP Float  A float (floating point number) is a number with a decimal point or a number in exponential form.  PHP Boolean  A Boolean represents two possible states: TRUE or FALSE.  $x = true; $y = false;  Booleans are often used in conditional testing. You will learn more about conditional testing in a later chapter of this tutorial.
  • 5.  PHP Array  An array stores multiple values in one single variable.  PHP Object  Classes and objects are the two main aspects of object-oriented programming.  A class is a template for objects, and an object is an instance of a class.  When the individual objects are created, they inherit all the properties and behaviors from the class, but each object will have different values for the properties.  Let's assume we have a class named Car. A Car can have properties like model, color, etc. We can define variables like $model, $color, and so on, to hold the values of these properties.  When the individual objects (Volvo, BMW, Toyota, etc.) are created, they inherit all the properties and behaviors from the class, but each object will have different values for the properties.  If you create a __construct() function, PHP will automatically call this function when you create an object from a class.
  • 6.  PHP NULL Value  Null is a special data type which can have only one value: NULL.  A variable of data type NULL is a variable that has no value assigned to it.  Tip: If a variable is created without a value, it is automatically assigned a value of NULL.  PHP Resource  The special resource type is not an actual data type. It is the storing of a reference to functions and resources external to PHP.  A common example of using the resource data type is a database call.
  • 8.  PHP language : The name PHP stands for Hypertext Preprocessor and denotes a server-side scripting language, which suggests that applications are written thereon run on web servers and don’t depend upon the online browser. Syntax of PHP language is analogous to C language. It is created by Rasmus Lerdorf and appeared in 1995. PHP is being widely utilized in developing web applications and became one of the main languages for developers to make new applications. Leading social networking sites like Facebook and reputed organizations like Harvard University are both using PHP which makes PHP popular and increases its credibility.
  • 9.  PHP is getting used widely in developing web- based and other applications across all domains. Few technologies whose development is supported by PHP are listed below :  Content Management System.  Web-based applications and development of sites.  E-commerce websites and applications.  Data Analytics and Representation.  Processing of Images.  Graphical interface design-based applications.  Developing the features of Flash.
  • 10.  Advantages of PHP :  The most important advantage of PHP is that it’s open-source and free from cost. It can be downloaded anywhere and is readily available to use for events or web applications.  It is platform-independent. PHP-based applications can run on any OS like UNIX, Linux, Windows, etc.  Applications can easily be loaded which are based on PHP and connected to the database. It’s mainly used due to its faster rate of loading over slow internet speed than other programming language.  It has less learning curve because it is simple and straightforward to use. Someone familiar with C programming can easily work on PHP.  It is more stable for a few years with the assistance of providing continuous support to various versions.  It helps in reusing an equivalent code and not got have to write lengthy code and sophisticated structure for events of web applications.  It helps in managing code easily.
  • 11.  Disadvantages of PHP :  It is not that secure due to its open-source, because the ASCII text file is often easily available.  It is not suitable for giant content-based web applications.  It has a weak type, which can cause incorrect data and knowledge to users.  PHP frameworks got to learn to use PHP built-in functionalities to avoid writing additional code.  Using more features of PHP framework and tools cause poor performance of online applications.  PHP doesn’t allow change or modification in the core behavior of online applications.  The PHP frameworks aren’t equivalent in behavior so does their performance and features.
  • 12.  For more information visit our websit  https://excellenceacademy.co.in/  931778822