What is the difference between == and === operator in PHP ?

  • Sharad Jaiswal
  • 24th Mar, 2020

1 answer(s) :

  •   Reply
    img

    Angelina Jones

    27th Jan, 2021
    "

    == checks for same value and === checks for same value and same datatype for ex 123==123 returns true 123=='123' returne true 123===123 returns true 123==='123' returns false because one is integer datatype and another is string data type

Post your Answer :

Valid name is required.

Valid name is required.

Valid email id is required.