saurabh  singh
Difference between == and === operator in php. ?
By saurabh singh in PHP on Mar 18 2015
  • Vijay Kumar
    Feb, 2018 25
  • Vijay Kumar
    Feb, 2018 25

    In PHP == is equal operator and returns TRUE if $a is equal to $b after type juggling and === is Identical operator and return TRUE if $a is equal to $b, and they are of the same data type.Example Usages: source : https://www.onlineinterviewquestions.com/core-php-interview-questions/

    • 0
  • saurabh  singh
    Mar, 2015 18

    The == operator just checks to see if the left and right values are equal. But, the === operator (note the extra “=”) actually checks to see if the left and right values are equal, and also checks to see if they are of the same variable type (like whether they are both booleans, ints, etc.).

    • 0

Most Popular Job Functions


MOST LIKED QUESTIONS