Which data type is used to represent a value that can only be true or false?

PHP Intermediate Easy

PHP Intermediate — Easy

Which data type is used to represent a value that can only be true or false?

Key points

  • Boolean is a scalar type
  • Values are case-insensitive true or false
  • Used primarily for control structures

Ready to go further?

Related questions