What is the purpose of writing a function inside parentheses?
PHP Code:
(function()
 {
     var 
myvar xxx;
     
// my function code here....
 
}

)() 
thanks.