Try: somewhere global define : $encryptiontechnique = 'ENCRYPT ALGORITHM';
function encryptPassword($password, $salt='') { global $encryptiontechnique; if ($salt === '') { $salt = $encryptiontechnique; } // CODE...... } Joel Colombo "Liam Gibbs" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I have a function, such as this: function encryptPassword($password, $salt = $encryptiontechnique) { } $encryptiontechnique is defined, obviously outside the function. How is it possible to make $encryptiontechnique global so that this will work? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php