PHP » GoLang |
login |
register |
about
|
hash(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1) hash — Generate a hash value (message digest) Description
string hash
( string
$algo
, string $data
[, bool $raw_output = FALSE
] )Parameters
Return Values
Returns a string containing the calculated message digest as lowercase hexits
unless Changelog
Examples
Example #1 A hash() example
<?php The above example will output: ec457d0a974c48d5685a7efa03d137dc8bbde7e3
Example #2 Calculate pre PHP-5.4 tiger hashes with PHP-5.4 and higher
<?php Output of the above example in PHP 5.3: 146a7492719b3564094efe7abbd40a7416fd900179d02773 64359b7192746a14740ad4bb7afe4e097327d0790190fd16 Output of the above example in PHP 5.4: 64359b7192746a14740ad4bb7afe4e097327d0790190fd16 146a7492719b3564094efe7abbd40a7416fd900179d02773 See Also
|
more
Recently updated
more
Most requested
more
Last requests
|