Is returning sensitive data like a password from a function safe, and what attack vectors exist?(Personally, it is regarding PHP, but is a general question.)function returnDBPass(){    $pass=mydbpass;    return $pass;}
How safe is returning a password from a function?
php;security