PHP Bangla Tutorial Part 2 HD

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 4

PHP Bangla Tutorial Part 2 HD-

Create PHP File, Syntax , Difference between echo and print

PHP Bangla Tutorial Part 3 HD-


PHP Variable And PHP Comment

PHP Bangla Tutorial Part 4 HD


PHP Data Type, Boolean, Integer, Float and String
Boolean- true/ false
integer- c~Y© msL¨v
float- `kwgK msL¨v
var_dump ($a);

PHP Bangla Tutorial Part 5 HD


PHP String Single quotation, Double quotation

PHP Bangla Tutorial Part 6 HD


PHP Arithmetic Operators

8 types of php operators


 PHP Arithmetic Operators.
 PHP Assignment Operators.
 PHP Increment/Decrement Operators.
 PHP Comparison Operators.
 PHP Logical Operators.
 PHP Bitwise Operators.
 PHP Array Operators.

PHP Arithmetic Operators

Operator Name Description


a+b Addition Sum of variables a and b, for example
2+3=5
a-b Subtraction Difference of a and b, for example 5-2=3
a*b Multiplication Product of a and b, for example 5*2=10
a/b Division Quotient of a and b, for example 10/2=5
a%b Modulus Remainder of a divided by b, for example
3%2=1
-a Negation Opposite of x, for example -5
a.b Concatenation Used to concat, for example “Pankaj” .
“Kumar”=”PankajKumar”

PHP Assignment Operators


Operator Description
a=b The value of b will be set to a, the left side can be
expressions also, for example a= 10-5
a+=b Same as a=a+b
a-=b Same as a=a-b
a*=b Same as a=a*b
a/=b Same as a=a/b
a%=b Same as a=a%b
a.=b Same as a=a.b

PHP Increment/Decrement Operators

Operator Name Description


++a Pre-increment Increment a by 1 and then returns it
a++ Post-increment returns a and then increment it by 1
–a Pre-decrement Decrement a by 1 and then returns it
a– Post-decrement returns a and then decrement it by 1

PHP Comparison Operators

Operator Name Description


a==b Equal True if a is equal to b
a===b Identical True if a is equal to b and of same type,
5===”5” is false
a!=b Not equal True if a and b are not equal
a<>b Not equal True if a and b are not equal
a!==b Not identical True if a and b are not equal and they are
not of same type, for example 5!==”5″
returns true
a<b Less than True if a is less than b
a>b Greater than True if a is greater than b
a<=b Less than or equal to True if a is less than or equal to b
a>=b Greater than or equal True if a is greater than or equal to b
to
PHP Logical Operators

Operator Name Description


a and b And True if both a and b are true
a or b Or True if either a or b is true
a xor b Xor True if either a or b is true, but not
both
!a Not True if a is not true
a && b And Same as and operator
a || b Or Same as or operator

https://www.journaldev.com/1477/php-operators
echo r print er

String “......”
For output- echo $a;
wcGBPwc †ewmK
Bb÷‡jkb
‡Kv_vq wjL‡eb
e¨vwmK Syntax
B‡Kv ebvg wc«›U
‡fwi‡qej (Variables)
‡WUv UvBc
w÷«s (String)
Acv‡iUi (Operators)
KwÛkbvj †÷U‡g›U
jyc (Loop)
While jyc
di jyc
A¨v‡i (Array)
dvskb (Function)
wcGBPwc dg©
‡MU †g_W
‡cv÷ †g_W
mycvi‡Mvevj †fwi‡qej
‡fwi‡qej †fwi‡qej
GWfvÝW wcGBPwc
wcGBPwc †d«gIqvK©
‡KvWBMbvBUvi

You might also like