Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #16752, comment 1


Ignore:
Timestamp:
03/29/2011 11:19:12 AM (15 years ago)
Author:
hakre
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16752, comment 1

    v1 v2  
    1 I don't know how much the trade-off is for that, but the PHP manual states the following:
     1I don't know how much the trade-off is for that, but the [http://php.net/manual/en/language.references.return.php PHP manual says the following]:
    22
    33> Returning by reference is useful when you want to use a function to find to which variable a reference should be bound. Do not use return-by-reference to increase performance. The engine will automatically optimize this on its own. Only return references when you have a valid technical reason to do so.