What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [PHP] Quick Dumb Question: Classes

[PHP] Quick Dumb Question: Classes
Author: Message:
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
39 / Male / Flag
Joined: Aug 2004
Status: Away
O.P. [PHP] Quick Dumb Question: Classes
Well, I'm programming again! (Yay, me!) But I'm so out-dated with everything, that I'm wondering about something...

Seeing as I can't test this until I finish more of it, I can only hope it'll work someday... So, the question is rather simple and I feel quite dumb to be asking this...

Suppose I have this:
code:
<?
class Something {

   function Something($sth, $blah) {

       if($blah == false) {

       $this->Something(functionToMakeSth(), true);

       }

   echo $this->property1;

   }

}
?>

Can I actually call the constructor again from inside the constructor? Will the changes reflect on $this later on?

For now, I'm leaving it that way until I can actually run the script. But it'd be nice to know if I'm doing it right, because I might need to do something similar in other classes. :wave:

This post was edited on 11-01-2006 at 05:42 AM by L. Coyote.

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

11-01-2006 05:41 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[PHP] Quick Dumb Question: Classes - by L. Coyote on 11-01-2006 at 05:41 AM
RE: [PHP] Quick Dumb Question: Classes - by WDZ on 11-01-2006 at 05:52 AM
RE: [PHP] Quick Dumb Question: Classes - by L. Coyote on 11-01-2006 at 06:13 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On