PHP Function@ Shwetank education.com
A function will be executed by a call to the function.
Types of Function
1- User- define
2- Pre- define
code to be executed here;
echo “Shwetank Education”;
echo “My name is “;
Script Isset Function in php
The isset() function is used to check whether a variable is set or not. Returns true if it is and false if it is not. Please note the the isset() function only works on variables and it’s use on anything else will produce errors.
Example With isset Function
echo “This variable is set”;
echo “This variable is not set”;
Script Unset Function in php
The unset() function is used to destroy specified variables.It can be used to destroy single variables, multiple variables or an element in an array.