---
title: "Discussion on \"PHP Conditionals and Booleans\" | Hashnode"
description: "Discussion on \"PHP Conditionals and Booleans\". A boolean variable can only be true or false;\nWe declared the variable $name as the name of the book, and the variable $read as our boolean variable,  if it's true then the user reads the book, if it's false then the user didn't read it.\nif($read) {\n..."
url: "https://hashnode.com/posts/php-conditionals-and-booleans/63b33b4cff3b3100c09276a0"
---

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

Discussion

# [PHP Conditionals and Booleans](https://saadlittleworld.hashnode.dev/php-conditionals-and-booleans?utm_source=hashnode&utm_medium=feed)

A boolean variable can only be true or false; We declared the variable $name as the name of the book, and the variable $read as our boolean variable, if it's true then the user reads the book, if it's false then the user didn't read it. if($read) { ...

Jan 2, 2023 · 1 min read · saadlittleworld.hashnode.dev  
Read the article

-   [#php](https://hashnode.com/tag/php)
-   [#newbie](https://hashnode.com/tag/newbie)

## Written by

[Saad](https://hashnode.com/@Shoyo)

@Shoyo

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

Interested in learning PHP,Javascript,Laravel, and Vue

## Responses 1

Markdown supported · ⌘↵ to post

[I AM Matengo](https://hashnode.com/@CApostle)

[Jan 3, 2023](https://hashnode.com/posts/php-conditionals-and-booleans/63b33b4cff3b3100c09276a0/comment/63b3d200d23d3c5ea6f5700b)

Great Series. Keep posting

[Saad](https://hashnode.com/@Shoyo)

[Jan 3, 2023](https://hashnode.com/posts/php-conditionals-and-booleans/63b33b4cff3b3100c09276a0/comment/63b3d200d23d3c5ea6f5700b#reply-63b408d092f96075bc8590dd)

Thank you so much!
