string sha1 ( string $str [, bool $raw_output ] )
Returns the sha1 hash as a string.
Returns the sha1 hash as a string.
$str = 'apple';
if (sha1($str) === 'd0be2dc421be4fcd0172e5afceea3970e2f3d940') {
echo "Would you like a green or red apple?";
exit;
}
?>