Re: Class VS Functions

From: Date: Fri, 21 Feb 2003 00:39:28 +0000
Subject: Re: Class VS Functions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-136435@lists.php.net to get a copy of this message
Hi, Friday, February 21, 2003, 9:41:46 AM, you wrote: CF> Hi. CF> I'm newbie in php (i'm in php about 1 year +/-), and after i read a lots of CF> docs showing the possibilities in php coding with Class's but the true is CF> that the "reability" of the code with Class's i steal can make the same with CF> normal functions. CF> I ask for the ppl, to give me examples (theorics preferencly) about CF> situations that Functions cant handle with the job :\ CF> Sorry my terrible bad english... CF> Cláudio Franco It is more a case of organisation than a do/can't do situation. Classes help keep all related functions and variables together. One thing springs to mind is function names can be the same in different classes and they won't conflict where with just functions by themselves they would have to be different. -- regards, Tom

« previous php.general (#136435) next »