List of All PHP Variable Handling Functions

Introduction

Here, On this Page, I'm Publishing the list of all variable handling functions in PHP With some details such as syntax, Description etc. As the name suggests, These type of PHP functions deals with information associated with variable. Here, "information" refers either to Value of Variable OR properties of variable. Type of tasks that PHP Variable handling functions do are listed below.

  • Information Modification - Tasks Such as Case/Type Conversion,
  • Deletion - Tasks such as destroying a variable,
  • Displaying / Outputting Data - Print Out the formatted or original output on screen,
  • Type Checking - Whether a Variable is Int, float, bool, string, array etc.

List of Variable Handling Functions

Here, Below is the full list of all PHP Variable Handling functions.

Variable Handling Functions in PHP
Variable Handling Functions in PHP
Function Name
Description / Usage
Syntax
debug_zval_dump
Dumps a string representation of an internal zend value to output
void debug_zval_dump ( mixed $variable )
doubleval
Alias of floatval()
 
empty
Determine whether a variable is empty
bool empty ( mixed $var )
floatval
Get float value of a variable
float floatval ( mixed $var )
get_defined_vars
Returns an array of all defined variables
array get_defined_vars ( void )
get_resource_type
Returns the resource type
string get_resource_type ( resource $handle )
gettype
Get the type of a variable
string gettype ( mixed $var )
import_request_variables
Import GET/POST/Cookie variables into the global scope
bool import_request_variables ( string $types [, string $prefix ] )
intval
Get the integer value of a variable
int intval ( mixed $var [, int $base = 10 ] )
is_array
Finds whether a variable is an array
bool is_array ( mixed $var )
is_bool
Finds out whether a variable is a boolean
bool is_bool ( mixed $var )
is_callable
Verify that the contents of a variable can be called as a function
bool is_callable ( callback $name [, bool $syntax_only = false [, string &$callable_name ]] )
is_double
Alias of is_float()
 
is_float
Finds whether the type of a variable is float
bool is_float ( mixed $var )
is_int
Find whether the type of a variable is integer
bool is_int ( mixed $var )
is_integer
Alias of is_int()
 
is_long
Alias of is_int()
 
is_null
Finds whether a variable is NULL
bool is_null ( mixed $var )
is_numeric
Finds whether a variable is a number or a numeric string
bool is_numeric ( mixed $var )
is_object
Finds whether a variable is an object
bool is_object ( mixed $var )
is_real
Alias of is_float()
 
is_resource
Finds whether a variable is a resource
bool is_resource ( mixed $var )
is_scalar
Finds whether a variable is a scalar
bool is_scalar ( mixed $var )
is_string
Find whether the type of a variable is string
bool is_string ( mixed $var )
isset
Determine if a variable is set and is not NULL
bool isset ( mixed $var [, $... ] )
print_r
Prints human-readable information about a variable
mixed print_r ( mixed $expression [, bool $return = false ] )
serialize
Generates a storable representation of a value
string serialize ( mixed $value )
settype
Set the type of a variable
bool settype ( mixed &$var , string $type )
strval
Get string value of a variable
string strval ( mixed $var )
unserialize
Creates a PHP value from a stored representation
mixed unserialize ( string $str )
unset
unset() destroys the specified variables.
void unset ( mixed $var [, mixed $... ] )
var_dump
Dumps information about a variable
void var_dump ( mixed $expression [, $... ] )
var_export
Outputs or returns a parsable string representation of a variable
mixed var_export ( mixed $expression [, bool $return = false ] )

Rate This Article ???

See results without voting

So, That was the full list of all PHP Variable Handling functions which are core part of PHP and are available in latest released version of PHP (A Server Side Programming Language).

More by this Author


Comments 1 comment

priyankmaniar profile image

priyankmaniar 4 years ago from Mumbai, India

nice list mate.

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.


    Click to Rate This Article
    working