Um...neither is faster __construct is just meant to be a set-up type of method.
I think it is more of a "Proper" method.
For that much I don't think having a function the same name as the class...
Search:
Type: Posts; User: Chris
Search: Search took 0.01 seconds.
- 18 Nov. 2009, 07:22am
Thread: PHP classes, __construct
by Chris- Replies
- 3
- Views
- 835
Um...neither is faster __construct is just meant...
- 18 Nov. 2009, 07:02am
Thread: PHP classes, __construct
by Chris- Replies
- 3
- Views
- 835
__cunstruct is executed on the creation of the...
__cunstruct is executed on the creation of the class.
Example;
$Class = new Class($Variable);
That input would be used for the __cunstruct function.
__destruct happens when the PHP...
Results 1 to 2 of 2