Php – Boolean Variable Types , True, False

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/php-boolean-variable-types-true-false/
PINTEREST
PINTEREST
INSTAGRAM

PHP Tutorial Topics

  1. Introduction To PHP
  2. Installing PHP To Linux
  3. Installing PHP To Windows
  4. PHP Hello World Project with Eclipse
  5. PHP Syntax
  6. PHP Variables and Types
  7. PHP String Types
  8. PHP Numeric Type (Integer, Float, Double)
  9. PHP Boolean Type
  10. PHP Arrays
  11. PHP Operators
  12. PHP Ternary Operators
  13. PHP Constants
  14. PHP If..Elseif..Else Conditional Statements
  15. PHP Switch..Case Conditional Statements
  16. PHP For and Foreach Loop Statements
  17. PHP While and Do While Statements
  18. PHP Functions
  19. PHP Class and Objects
  20. PHP Date and Time Operations

Programming generally consist of numeric and logic operations. We have seen numeric variables in previous post. Now we will look other part. While developing applications we generally provide algorithm. Algorithms mostly provides execution diagram. We will use logic values to check and change the execution of the application.

Boolean

Boolean logic uses true and false as values and makes some calculations with operators. We will see these calculations and operators next chapters.

True

true is used to describe the positive and true situation. Positive numbers generally interpreted as true in most situations by the functions or third party libraries. In the example below we will create a boolean variable which is named $door_isopen and holds the door openness situation.

False

false is used to describe the negative and false situation. NEgative numbers generally interpreter as false in most situations by the functions or third party libraries. In this example below we will create a boolean variable which is named $door_isopen and holds the openness situation.

Null

While developing applications we generally use different type those can hold values. But in some situation we may need to empty the variable. We can cal this nullify in other words. Nullify will remote current value and type. We can set null a variable with NULL like below. Null evaluates false in boolean logic.

LEARN MORE  In Python Operator Usage Tutorial with Examples

PHP Tutorial Topics

  1. Introduction To PHP
  2. Installing PHP To Linux
  3. Installing PHP To Windows
  4. PHP Hello World Project with Eclipse
  5. PHP Syntax
  6. PHP Variables and Types
  7. PHP String Types
  8. PHP Numeric Type (Integer, Float, Double)
  9. PHP Boolean Type
  10. PHP Arrays
  11. PHP Operators
  12. PHP Ternary Operators
  13. PHP Constants
  14. PHP If..Elseif..Else Conditional Statements
  15. PHP Switch..Case Conditional Statements
  16. PHP For and Foreach Loop Statements
  17. PHP While and Do While Statements
  18. PHP Functions
  19. PHP Class and Objects
  20. PHP Date and Time Operations
RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/php-boolean-variable-types-true-false/
PINTEREST
PINTEREST
INSTAGRAM

Leave a Reply

Your email address will not be published.