A block of code that perform a specific task.
A function will not exceute automatically on page loads.
A function will be exceuted when call to function.
Function are two types-
1)-User defined function
2)-Predefined function
1)-User defined function-
function myfunction(){
//some code
}
2)-Predefined function-
print()
echo()
header()
phpinfo()
etc.
Copyright ©2022 coderraj.com. All Rights Reserved.