PHP Variable Built in Functions

What is Variable handling Functions in PHP ?

Variable handling function in PHP  are those function which maintain the property of  variable and check for it,whether value of variable is correct or not according to requirement. There are various function for variable handling list is Given below .where $var is a variable

boolval($var) Get the boolean value of a  variable
debug_zval_dump($var) Dumps a string representation of an internal zend value to output
doubleval($var) Alias of floatval
empty($var) Determine whether a  variable  is empty
floatval($var) Get float value of a  variable
get_defined_vars($var) Returns an array of all defined  variable
get_resource_type($var) Returns the resource type
gettype($var) Get the type of a  variable
import_request_variables Import GET/POST/Cookie  variable  into the global scope
ntval($var) i Get the integer value of a  variable
is_array($var) Finds whether a  variable  is an array
is_bool($var) Finds out whether a  variable is a boolean
is_callable($var) Verify that the contents of a  variable can be called as a function
is_double($var) Alias of is_float
is_float($var) Finds whether the type of a  variable is float
is_int($var) Find whether the type of a  variable is integer
is_integer($var) Alias of is_int
is_long($var) Alias of is_int
is_null($var) Finds whether a  variable  is NULL
is_numeric($var) Finds whether a  variable  is a number or a numeric string
is_object($var) Finds whether a   variable is an object
is_real($var) Alias of is_float
is_resource($var) Finds whether a  variable  is a resource
is_scalar($var) Finds whether a  variable  is a scalar
is_string($var) Find whether the type of a  variable  is string
isset($var) Determine if a  variable  is set and is not NULL
print_r($var) Prints human-readable information about a  variable
serialize($var) Generates a storable representation of a value
settype($var) Set the type of a  variable
strval($var) Get string value of a  variable
unserialize($var) Creates a PHP value from a stored representation
unset($var) Unset a given  variable
var_dump($var) Dumps information about a  variable
var_export($var) Outputs or returns a parsable string representation of a  variable
Scroll to Top