PHP Salt


A little dash of PHP... my collection of php functions

Version: 2.33.2
Last Build: December 29, 2023 20:28pm (PST)

Main Menu

Home

Get PHP Salt


The Functions

array
db
file
graph
html
mail
math
misc
mobile
script
string
system
time
web
psCreatKey()
Create Key


Description:

This function generates a NON-UNIQ key from a mixed set of data.
This will allow you to generate cache file names, etc..



Usage:

psCreateKey(MIXED);



Example:


$mix[0] = 'test';
$key = psCreateKey($mix);
print ":$key:\r\n";





Code:


function psCreateKey($mixed)
{
$res = md5(serialize($mixed));
return $res;

}




Changlelog:


See Also

  psUniqKey()
  psUniqKeyTxt()
And a shot out to:

PHP - php.net
Fedora Server - getfedora.com
Shameless ads to pay for site