Re: When to make a class

From: Date: Sun, 27 Nov 2005 16:00:46 +0000
Subject: Re: When to make a class
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-226510@lists.php.net to get a copy of this message
On 11/26/05, Todd Cary <todd@aristesoftware.com> wrote: > /* Input a field */ > function input_field($name, $value, $size, $max) { > echo('<INPUT TYPE="text" NAME="' . $name . '" > VALUE="' . $value . > '" SIZE="' . $size . '" MAXLENGTH="' . $max . > '">'); > }; A bit away from your OO question, but IMHO, such function good in terms of rapid coding but bad if you ever get a graphic/web designer to redo your designs 'cause he or she will be all (!!) at your php code. -ahmed -- -ahmed

« previous php.general (#226510) next »