write a php script to get type of variable using gettype() code example Example: check type in php gettype ( mixed $var ) : string