Introduction to php 4
-
Upload
pctechnology -
Category
Technology
-
view
6 -
download
0
Transcript of Introduction to php 4
- 1. Introduction to PHP/MySQL Technical Team, PC Technology Private Limited
- 2. What has been done ? Simple PHP Programs Addition, Subtraction, Multiplication, Division and Modulus GET and POST Methods Print and Echo Comments in PHP Case Sensitivity Variables and their usage and syntax Logical Program
- 3. PHP Data Types and Usage String Integer Float/Double Boolean Array Object NULL
- 4. What is a string ? A string is a collection of characters It can have numbers, alphabets, special characters, etc. A string should be declared inside quotes, single or double Example : $name= Roger; $name=Roger;
- 5. PHP Integers An integer is any number without decimals An integer can be positive or negative Its not necessary to put a decimal point The declaration doesnt need quotes Example : $x = 5;
- 6. PHP Float, Boolean and Arrays A float is a number with a decimal value A Boolean can have two possibilities True False Arrays are collection of data under one name. Eg : $cars = array (Tata, Maruti, BMW);
- 7. Importance of var_dump var_dump is a PHPs Function It is used to recognize the data type of a particular variable. var_dump can be used anywhere in the program to get the type of the variable. Declared as var_dump(variable name) ;
- 8. Thanks for paying attention Queries ??