I got the same results from my benchmarks, also.
Unless you want to change variable in function and get modified value, do not
use reference.
Without reference, PHP4 executes script faster. Due to reference counting in
PHP4, probably.

Regards,

--
Yasuo Ohgaki


"Christian Dechery" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> By doing this:
>
> <?php
> $someArray=array("this","that","those");
> for(something to loop)
> do something with $someArray here;
> ?>
>
> is PHP using the same amount of memory as this:
>
> <?php
> $someArray=array("this","that","those");
> somefunction($someArray);
>
> function somefunction(&$ref_to_array)
> {
> for(something to loop)
> do something with $ref_to_array here;
> }
> ?>
>
> because it seems to me, that the script gets a little slower when I
> introduce the function method.
>
> ____________________________
> . Christian Dechery (lemming)
> . http://www.tanamesa.com.br
> . Gaita-L Owner / Web Developer
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to