A function returns a value using the instruction ‘return $value;’. Post navigation How can we define a variable accessible in functions of a PHP script? What is the most convenient hashing method to be used to hash passwords?