} elseif($cruuent_url_slug == 'php-oops'){ ?> } elseif($cruuent_url_slug == 'javascript'){ ?> } elseif($cruuent_url_slug == 'jquery'){ ?> } elseif($cruuent_url_slug == 'ajax'){ ?> } elseif($cruuent_url_slug == 'codeigniter'){ ?> } elseif($cruuent_url_slug_core == 'laravel'){ ?> } elseif($cruuent_url_slug_core == 'mysql'){ ?> } elseif($cruuent_url_slug == 'node.js'){ ?>
isset() function
This function is used to checks a variable value is set or not. which means that it has to be variable is declared and is not NULL.
This isset() function returns true if the variable value is set and is not NULL, otherwise it returns false.
unset() Function
The unset() function unset a variable. this function is used to remove the variable value.
Example :-
empty() function
empty() function is a predefine php function. it check the variable value is empty or not. if variable is empty then it return True otherwise it return False.
intval() function
is_array() function
is_null() function
is_null() Check a variable is NULL or not. if the variable has been set with NULL. in this case is_null() is used to check variable is empty or not.
isset() function is used to check variable contain value or not. but is_null() check variable contain null or not.
“” | “sana” | NULL | FALSE | 0 | undefined | |
empty() | True | False | True | True | True | True |
is_null() | False | False | True | False | False | True (error) | isset() | True | True | False | True | True | False |
is_object()
Trending Tutorials