1. Introduction to PhP
Ajay Khatri
Senior Assistant Professor
Acropolis Institute of Technology & Research
www.ajaykhatri.in
https://play.google.com/store/apps/details?id=learn.apps.phpprogramming
2. PHP stands for
PHP => PHP: Hypertext Preprocessor.
This confuses many people because the first word of
the acronym is the acronym. This type of acronym is
called a recursive acronym.
its original name Personal Home Page
3. What is PHP?
Loosely typed scripting language
Executed on the server
Commonly used to build web applications
15. Primitive Data Types
<?php
$isPhpProgrammer = true; // boolean
$howOldIsPhp = 15; // integer
$pi = 3.14; // float
$event = 'VT Code Camp'; // string
A string can hold letters, numbers, and special
characters and it can be as large as up to 2GB
(2147483647 bytes maximum)
63. http://ajaykhatri.inhttp://ajaykhatri.in
Sorting Arrays
sort() - ascending order
rsort() - descending order
asort() - according to the value
ksort() - according to the key
arsort() - descending order, according
to the value
krsort() - descending order, according
to the key
94. http://ajaykhatri.inhttp://ajaykhatri.in
Classes & Objects - PhP
Ajay Khatri
Senior Assistant Professor
Acropolis Institute of Technology & Research
www.ajaykhatri.in
https://play.google.com/store/apps/details?id=learn.apps.phpprogramming