PHP supports 8 data types

  1. scalar data types( A variable in which only one value can be stored at a time
    1. Boolean
    2. integer
    3. Float / Double
    4. String
  2. Compound data type (A variable in which multiple values can be stored)
    1. Array
    2. Object
  3. Special data types
    1. resource
    2. Null

The type of variable is not set by the programmer, rather it is decided at run type byPHP depending upon the context in which the variable is used.

Var_dump (Var_name):-

it is built in function of PHP used to getting the type of variable with content of variable

Gettype(var_name):
It is also an Built in function in PHP it is used to get the type of variable.

Settype(var_name)
It is also an Built in function in PHP it is used to change the type of variable.

I will explain about notice error in the next class

Unset(var_name)
It is also an Built in function in PHP it is used to removing the content from variable.