Thursday, February 27, 2014

Basic part-3 | Operators & Expressions

Hello.. Friends, Today we are going to study about Operators & different different operators

Operators :

we study about variables how to set variables to a particular value, assigning value to a variable etc like as variables using an operators we can retrieve  operators to produce a new value for example
echo $x +  $y
so here operator is a symbol that manipulates one or more values, & expressions in php is anything that evaluates to a value this can be any combination of values,variables,operators and functions
The values and variables that are used with an operator are known as operands

Types of Operators :

  • Arithmetic : Perform common arithmetical operations,such as addition and subtraction
  • Assignment : Assigning values to variables
  • Bitwise : Perform operations on individual bits in an integer
  • Comparison : Compare values in Boolean fashion ( true or false is returned )
  • Error Control : Affect error handling
  • Execution : Cause execution of commands as through they were shell commands
  • Incringementing / Decrementing : Increment or decrements a variable's value
  • Logical : Boolean operators such as and, or and not that can  be used to include or exclude
  • String : Concatenates (join together) strings ( there's only one string operator )
  • Array : Perform operations on arrays



 Array operator


 Arithmetic Operator


Assignment Operator


Comparison Operator


Increment/Decrement Operator 


String Operator
Share this post

0 comments

:) :-) :)) =)) :( :-( :(( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ :-$ (b) (f) x-) (k) (h) (c) cheer

© 2017 Friends Code
Designed by cyb3r.gladiat0r
Posts RSSComments RSS
Back to top
Hack for India, Code for India, Configuration for India, Die for India !