Type of Data Returned by a Function



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?
.



Relevant Pages

  • Re: Type of Data Returned by a Function
    ... returned by my functions is "unknown" in the following syntax: ... I *think* I can specify that by doing something like this: ... The only thing I can think of that might have something to do with what you say are phpdoc comments: ...
    (comp.lang.php)
  • Re: Dynamic SQL Again !$&
    ... > trying to use a literal string in a statement. ... > I am getting a syntax error on Unknown. ...
    (microsoft.public.sqlserver.programming)
  • Re: sql for row where value=
    ... Malcolm Dew-Jones wrote: ... This is probably a stupid question but I don't get it. ... That is because NULL also represents an "unknown" value, and it isn't possible to say that two unknown values are the same as each other. ... I had tried that but my syntax was wrong. ...
    (comp.lang.php)
  • New functions in .NET 2.0 ???
    ... I have this line of code, but the syntax check in VB.NET 2003 and also in ... VB.NET 2005 Beta 2 shows as unknown: ... Dim local4 As Byte ...
    (microsoft.public.vb.general.discussion)
  • New functions in .NET 2.0 ?
    ... I have this line of code, but the syntax check in VB.NET 2003 and also in ... VB.NET 2005 Beta 2 shows as unknown: ... Dim local4 As Byte ...
    (microsoft.public.dotnet.framework.interop)