PHP Salt


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

Version: 2.14.1
Last Build: March 10, 2017 13:28pm (PST)

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:

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