I found the following code in http://in3.php.net/manual/en/function.chr.php 
<?php 
function randPass($len) 
{ 
 $pw = ''; //intialize to be blank 
 for($i=0;$i<$len;$i++) 
 { 
   switch(rand(1,3)) 
   { 
     case 1: $pw.=chr(rand(48,57));  break; //0-9 
     case 2: $pw.=chr(rand(65,90));  break; //A-Z 
     case 3: $pw.=chr(rand(97,122)); break; //a-z 
   } 
 } 
 return $pw; 
} 
?> 
Example: 
<?php 
 $password = randPass(10); //assigns 10-character password 
?> 
Could some kindly explain me the use or effect of a . after $pw .I tried looking for similar question,but could not find one.If there is any related question,plz provide link.
Thanks
 
     
     
     
    