There are several different hash functions such as sha, md5, or haval. They can be applied to a string and return another string called a digest. Hash functions have some interesting properties:
* it is easy to compute the digest for any given string
* it is infeasible to generate a string that has a given digest
* it is infeasible to modify a string without changing the digest
* it is infeasible to find two different strings with the same digest.
You can learn more about hash functions on wikipedia (
http://en.wikipedia.org/wiki/Cryptographic_hash_function)
The php function 'hash' takes two inputs, a hash algorithm such as sha256 and a string to be hashed. For example 'hash("sha256", $str)' will return the sha256-hash of the string $str. I guess what you are looking for is the hash of the concatenation of $var1, $var2, $var3. Try 'hash("sha256", $var1.$var2.$var3)'.