You are here: Dynamic function creation? « PHP Programming Language « IT news, forums, messages
Dynamic function creation?

Posted by howa on 12/31/06 11:20

for example, i have a class, e.g.

class User {


var $name;
var $age;
var $blah;

}

The user has many atttibutes, i want to provide each of them with
getter & setter function, but it is time consuming to type all the
functions for all attributes...

is it possible to dynamically create function? so I only need to
declare one setter, and one getter?

thanks.

 

Navigation:

[Reply to this 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

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