|
Posted by Rik on 02/09/07 15:23
On Fri, 09 Feb 2007 16:14:30 +0100, howa <howachen@gmail.com> wrote:
>
>>
>> No, it is not assigned to anything. The results are echoed and
>> discarded,
>> you are not using it's results again as you have not assigned it
>> anywhere.
>> Any variables within a function's scope are discarded on exit (unless
>> declared static).
>>
>
> yes, it is echoed and discarded, but my point is:
>
> you need to allocate extra memory for storing the output of md5, so
> return by reference also make sense. (as well as your one above)
Return by reference does not make sense because the engine already does
this internally. What's it about 'the engine already does this' that you
do not understand?
--
Rik Wasmus
[Back to original message]
|