note 80047 deleted from function.hash by danbrown
| From: | danbrown@php.net | Date: | Sat, 14 Mar 2009 14:48:30 +0000 |
| Subject: | note 80047 deleted from function.hash by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-151892@lists.php.net to get a copy of this message | ||
Note Submitter: Errata
----
The above won't work in raw output, besides the crc32 function isn't the same.
if(!function_exists('hash')) {
function hash($algo, $data, $raw_output = 0)
{
if($algo == 'md5') return(md5($data, $raw_output));
if($algo == 'sha1') return(sha1($data, $raw_output));
}
}