What does ($data . =) do in php
i was wondering if anyone could explain what the lines in bold mean. i don't understand what $data . = does
function RandomNumber($length)
{
$Random = srand((double)microtime()*1000000);
$data = "AbcDE123GHIJK4LMN567QRSTU89VWXYZ";
$data .= "aBCdefghijklmn123opq45rs67tuv89wxyz";
$data .= "0FGH45OP89";
for($i = 0; $i < $length; $i++)
{
$Random .= substr($data, (rand()%(strlen($data))), 1);
}
echo "$Random <br>";
}
RandomNumber(8);
Thanks,
Scoobie
|