PHP SHA1() FUNCTION

P
PHP soundex() Function
PHP str_repeat() Function

what is the syntax of the function in php?

sha1(string,raw)
ParameterDescription
stringRequired. The string to be calculated
rawOptional. Specify hex or binary output format:TRUE – Raw 20 character binary formatFALSE – Default. 40 character hex number
PHP SHA1() method

examples of the SHA1() function

Example 1. In this example, we calculate the SHA-1 hash of the string “Hello”.

<?php
$str = "Hello";
echo sha1($str);
?>
PHP soundex() Function
PHP str_repeat() Function

Add comment

Tutor Network

Share this

Learn PHP from A to Z