Reply to Re: re-using variables

Your name:

Reply:


Posted by Sjoerd on 02/27/07 18:34

Mitesh wrote:
> $res = mysql_query($req);
> .............
> $res = mysql_query($req);
> In other words since PHP uses garbage collection re-using the same
> variable can cause problems. Is this true?

Using the same variable twice is fine. Don't bother too much about the
garbage collector. Since it removes variables when you don't use them
anymore, it never gets in the way.

You probably have another problem which causes things to fail sometimes.

Sjoerd

[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

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