http://www.devshed.com/c/a/PHP/Design-P ... t-Factory/
Thanks guys!
Search found 2 matches
- Tue Aug 01, 2006 8:30 am
- Forum: PHP - Code
- Topic: Kill object during construction?
- Replies: 11
- Views: 845
- Mon Jul 31, 2006 3:53 pm
- Forum: PHP - Code
- Topic: Kill object during construction?
- Replies: 11
- Views: 845
Kill object during construction?
Is it possible in PHP4 to kill an object during its construction? Something like this: class A { function A ($b) { if ($b<5) { // do not create object, because $b has to be >=5 } else { // create object } } } Have been looking on Php.net, forums and even Google, but couldn't find anything...