Reply to Re: Why Returning References can't provide speed up?

Your name:

Reply:


Posted by howa on 02/09/07 02:52

> In other words: the engine is smarter then you think.
> --

the bottom line is: the engine created dummy variables for storing two
copies of data, e.g.


<?php

function conv_md5( $data ) {

return md5($data);
}

$data = "abc";

echo conv_md5( $data );
echo $data;


?>

the engine never know we will use the variable $data later, so it
always created allocated memory for storing the result of conv_md5(),
only we know and can force to use return by reference.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация