Reply to Re: Globals problem (I think)

Your name:

Reply:


Posted by Andy Jeffries on 05/05/06 14:34

On Fri, 05 May 2006 04:27:24 -0700, Troot wrote:
> eval("\$" . $attributes['NAME'] . " = \"" . $attributes['VALUE'] .
> "\";");

You could replace that with:

$name = $attributes['NAME'];
$$name = $attributes['VALUE'];

Makes it a bit easier to read and you experience the fault.

Cheers,


Andy

--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

[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

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