PHP – Hypertext Preprocessor Presentation By: Sonal Dhomne Guided By: Miss Anjali Goswami 1 4.CHARACTERISTICS 6.PRIMITIVES 2.HISTORY 1.INTRODUCTION 3.USES 5.SYNTAX 2 Introduction • PHP is a acronym for "PHP: Hypertext Preprocessor". • PHP is a server side scripting language that is embedded in HTML used for web development. • PHP Syntax is C-Like. • It can be seamlessly integrated with various databases and frameworks. History • PHP was created by Rasmus Lerdorf in 1994 (tracking visitors). • It was initially known as “Personal Home Page Tools”. • Drew inspiration from Perl , C and other programming languages Uses • PHP can generate dynamic page content • PHP can create, open, read, write, delete, and close files on the server • PHP can collect form data • PHP can send and receive cookies • PHP can add, delete, modify data in your database • PHP can be used to control user-access • PHP can encrypt data Characteristics • Simplicity : Easy syntax and structure , easy to learn. • Efficiency : Good execution speed, process large amounts of data • Security: has built in security features. • Flexibility : used for server-side scripting, command-line scripting, building desktop applications, game development. • Familiarity : open-source contribution has made php familiar and wellsupported. General Syntax Tags and Input: Conditional Statements: Functions: Loops: Include Ext. files: Tags and Input: Tags and Input: Variable Declaration: Integer PRIMITIVES Primitive data types refers to the type of data that can be held in a variable or constant. They are called primitive because the data type is fundamental to the language and cannot be broken down any further. <?php $x = 10; var_dump($x); ?> Boolean <?php $x = true; var_dump($x); ?> Null <?php $x = "hello"; $x=null; var_dump($x); ?> Float <?php $x = 10.365; var_dump($x); ?> String <?php $x = "hello"; var_dump($x); ?> THANK YOU 9