• PHP Video Tutorials

PHP - Function crypt



Syntax

string crypt ( string $str [, string $salt ] )

Definition and Usage

It is used to hashing the string

Return Values

It returns the hashing string

Parameters

Sr.No Parameters & Description
1

str

The string to be hashed

Example

Try out the following example

<?php
   $input = 'information';
   
   $hash = crypt($input);
?>
php_function_reference.htm
Advertisements