• HTML,CSS,PHP,JAVASCRIPT ALL WEBDEVELOPMENT INFORMATION HINDI

    Saturday, 25 March 2017

    php operator

    .php operators 

    .php operators hindi

    .php types of operators

    php operators-

    php opeartor ka use operation ko complete karne ke liye kiya jata hai. php me operator ko different 

    parts me divide kiya gaya hai..

    types of php operators:-

    1. binary operator
    2. unary operator
    3. ternary operator

    1 binary operator- binary operator me two operands or variable ka use hota hai(+,-,*)

    2 unary operators- unary operators me single operator and variables ka use hota hai(+,+)

    3 ternary operators- ternary operators me three operands varibles ka use hota hai.(+,-,?)


    mainly use operators-

    • Arithmetic operators
    • Comparison operators
    • Logical operators
    • Assignment operators
    • Array operators
    • Increment/Decrement operators

    .arithmetic operator-

    arithmetic operator ka use arithmetic work exa(multiple, substract, divide) me use hota hai.(+,-,%,/)

            NAME
            OPERATOR
           EXAMPLE
             multiple
                      *
         $a*b
            substract
                      +
         $a+b
             divide
                     /
          $a/b
              negative
                   -
           $a-b

    .comparison operator-

    comparison operator me values , variable  me compare kiya jata hai.

    exa-

    . not equal = + , = ? 

    .equal = =

    .identical = = =

    .not identical = = !

    .logical operator-

    php logical operator ko support karta hai. isme logically perform apply kiya jata hai..

    exa-
            NAME
            OPERATOR
           EXAMPLE
             and
              logical and
           A and b
            or
              Logical or       
          A or  b
             &&
                Logical and conditional
          A && b
              ||
              Logical or
           A || b


    .assignment operator-

    assignment operator  php language ko support karta hai..

    . simple asignment operator (=)  C=A+B
    .add and assignment operator (+=) C+=A
    .subtract and assignment perator(-=) C-=A
    .divide and assignment operator (/=) C/=A

    .array operator-

    php array operator ko support karta hai..

    exa-

            NAME

            OPERATOR

           EXAMPLE

             union

              +

           $a+$b

            equality

              == 

          $a==$b

             identity

              ===

          $a===$b

              Non identity

              !==

           ----

     

    .increment and decrement operator-

    increment aur decrement operator ko php language support karti hai..

    exa-

    ++$y Pre-increment- operator value से पहले लगाए जाते है
    $y++ Post-incremen- operator value के बाद लगाए जाते है

    2 comments:

    1. Hello sir main gurugram Haryana mein rahata hun mere ko job chahie

      ReplyDelete
    2. An error occurred while the server was being contacted.

      ReplyDelete

    Contact

    Name

    Email *

    Message *

    Pages