Course Content
PHP is an object-oriented scripting programming language that allows web developers to create dynamic and interactive web pages. PHP stands for Hypertext Preprocessor (PHP).
Control Statement
A control statement is a statement that determines whether other statements will be executed.
PHP for Beginners
About Lesson

Data types are used to carry various types of data or values. PHP supports 8 primitive data types that can be categorized into 3 types:

  1. Scalar Types (predefined)
  2. Compound Types (user-defined)
  3. Special Types


Scalar Types (predefined)

It stores only a single value. There are 4 scalar data types in PHP.

  • boolean
  • float
  • integer
  • string


Compound Types (user-defined)

Compound data types can store multiple values. PHP supports two types of compound data types.

  • array
  • object


Special Types

PHP supports two types of compound data types.

  • resource
  • NULL