Function __global->sha1

Definitions

sources_custom/phpstub.php

  • Calculate the sha1 hash of a string.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$str string No No required parameter N/A N/A The string to hash

Returns

  • The hash of the string
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Calculate the sha1 hash of a string.
 *
 * @param  string $str The string to hash
 * @return string The hash of the string
 */

function sha1(string $str) : string