---
title: "Discussion on \"Difference Between == (equal) and === (comparison) Operators In Php\" | Hashnode"
description: "Discussion on \"Difference Between == (equal) and === (comparison) Operators In Php\". Equal(==) and Identical(===) operators are two of the most used operators in Php. While they are similar, there is still a major difference which is that  '==' is used to check if the values of two operands are equal or not. While '===' is used to ch..."
url: "https://hashnode.com/posts/difference-between-equal-and-comparison-operators-in-php/60f80806410a0224b5d50d2b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Difference Between == (equal) and === (comparison) Operators In Php](https://husmarn.hashnode.dev/difference-between-equal-and-comparison-operators-in-php?utm_source=hashnode&utm_medium=feed)

Equal(==) and Identical(===) operators are two of the most used operators in Php. While they are similar, there is still a major difference which is that '==' is used to check if the values of two operands are equal or not. While '===' is used to ch...

Jul 21, 2021 · 2 min read · husmarn.hashnode.dev  
Read the article

-   [#php](https://hashnode.com/tag/php)
-   [#functions](https://hashnode.com/tag/functions)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Lekan Kareem](https://hashnode.com/@Husmarn)

@Husmarn

  
[View profile](https://hashnode.com/@Husmarn)

Npm init

## Responses 1

Markdown supported · ⌘↵ to post

[eibrahim](https://hashnode.com/@eibrahim)

[Jul 25, 2021](https://hashnode.com/posts/difference-between-equal-and-comparison-operators-in-php/60f80806410a0224b5d50d2b/comment/60fd4daf18fbbb77c9467840)

Great explanation, but i thought it was JavaScript

[Lekan Kareem](https://hashnode.com/@Husmarn)

[Jul 25, 2021](https://hashnode.com/posts/difference-between-equal-and-comparison-operators-in-php/60f80806410a0224b5d50d2b/comment/60fd4daf18fbbb77c9467840#reply-60fd62cf18fbbb77c9467ae3)

Just like most syntax, this operators span across different languages, so it works in both JavaScript and PHP.

Hope this answers your question
