Skip to main content

PHP Boolean Variables

Body

Introduction:
This tutorial will cover boolean variables in PHP.

What is a variable?
A variable is a piece of information which holds a value. Each variable has a type and a reference name. The value of a variable will depend on the type for that particular variable.

What types can a variable be?
There are a few different basic types of variable which include;
Strings
Booleans
Integers

Strings hold characters, letters, numbers and symbols in a string format (essentially a character array), Booleans hold a true or false value and Integers hold a full number.

When are booleans

Add new comment