Posted by Sanders Kaufman on 07/20/07 22:32
I've noticed that some code analyzers comment that the type of data
returned by my functions is "unknown" in the following syntax:
function fnFooBar($aryParameters) {
$bRetVal = True;
return $bRetVal;
}
I *think* I can specify that by doing something like this:
function fnFooBar($aryParameters) bool {
$bRetVal = true;
return $bRetVal;
}
Is this correct?
If so, is there a performance gain, or is it just clean coding?
Navigation:
[Reply to this message]
|