Differentiate between parameterised and non parameterised functions

Technology CommunityCategory: PHPDifferentiate between parameterised and non parameterised functions
VietMX Staff asked 4 years ago
  • Non parameterised functions don’t take any parameter at the time of calling.
  • Parameterised functions take one or more arguments while calling. These are used at run time of the program when output depends on dynamic values given at run time There are two ways to access the parameterised function:
  1. call by value: (here we pass the value directly )
  2. call by reference: (here we pass the address location where the value is stored)