#PGTCOMPUTER #phpoperator
#navodaya2020
#computerteacher
#kvscomputerteacher
#rajsthanpatwari
#rajsthanconstable
#bank_PO
#ssc_exam
#ibps
#राजस्थानपटवारीपरीक्षा
#राजस्थानकॉन्स्टेबलभर्तीपरीक्षा
#computerteachervacancy2020
What is email
WHAT IS protocol
How to USE email protocol
#computer
#information technology
#RKCL
#CBSE
#RBSE
#phptutorial #website # beginners #php #hindi # hanumankhatore #phpproject #phpfullcourse
Hanuman khator channel को subscribe करना ना भूले।
इतने प्रकार के telnet protocol नही देखे होंगे|| types of telnet protocol in hindi||
WHATSAPP NO 9828128420 FOR FREE COUNSELING IN sriganganagar
Computer classes| most 5 questions|| BCA||BTech||MSc||MCA
New update 2020
PGT COMPUTER TEACHER
Telnet protocol in hindi||Telnet protocol in computer network ||what is telnet ||easily explained
Operating system is linux
Computer teacher vacancy in rajasthan 2020
Rajasthan patwari bharti 2020
What is computer
How to subscribe
1. Youtube को open करो।
2. Hanuman khator टाइप करो।
3.subscribe का बटन दबाए।
What is Operator?
Simple answer can be given using expression 4 + 5 is equal to 9. Here 4 and 5 are called operands and + is called operator. PHP language supports following type of operators.
• Arithmetic Operators
• Comparison Operators
• Logical (or Relational) Operators
• Assignment Operators
• Conditional (or ternary) Operators
PHP Operators
Arithmetic operators
Arithmetic operators are used to perform arithmetic operations on numeric data. The concatenate operator works on strings values too. PHP supports the following operators.
Operator Name Description Example Output
Addition Summation of x and y 1 + 1; 2
Subtraction Difference between x and y 1 – 1; 0
Multiplication Multiplies x and y 3 * 7; 21
/ Division Quotient of x and y 45 / 5; 9
% Php Modulus Gives reminder of diving x and y 10 % 3; 1
-n Negation Turns n into a negative number -(-5); 5
x . y Concatenation Puts together x and y "PHP" . " ROCKS";10 . 3; PHP ROCKS103
** Exponentiation $x ** $y Result of raising $x to the $y'th power
Assignment Operators
Assignment operators are used to assign values to variables. They can also be used together with arithmetic operators.
Operator Name Description Example Output
x = ? assignment Assigns the value of x to ? $x = 5; 5
x += ? addition Increments the value of x by ? $x = 2;$x += 1; 3
X -= ? subtraction Subtracts ? from the value of x $x = 3;$x -= 2; 1
X *=? multiplication Multiplies the value of x ? times $x = 0;$x *=9; 0
X /=? division Quotient of x and ? $x = 6;$x /=3; 2
X %=? modulus The reminder of dividing x by? $x = 3;$x %= 2; 1
X .=? concatenate Puts together items " $x = ‘Pretty’;$x .= ‘ Cool!’;" Pretty Cool!
Comparison operators
Comparison operators are used to compare values and data types.
Logical operators
When working with logical operators, any number greater than or less than zero (0) evaluates to true. Zero (0) evaluates to false.
Operator Name Description Example Output