Type of Data Returned by a Function
- From: Sanders Kaufman <bucky@xxxxxxxxxxx>
- Date: Fri, 20 Jul 2007 22:32:06 GMT
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?
.
- Follow-Ups:
- Re: Type of Data Returned by a Function
- From: Rik
- Re: Type of Data Returned by a Function
- From: ZeldorBlat
- Re: Type of Data Returned by a Function
- From: Toby A Inkster
- Re: Type of Data Returned by a Function
- Prev by Date: Re: can this be achieved by a single mysql instruction?
- Next by Date: Re: can this be achieved by a single mysql instruction?
- Previous by thread: jak w php wyswietlic n-ty wiersz tabeli
- Next by thread: Re: Type of Data Returned by a Function
- Index(es):
Relevant Pages
|