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:
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: [PHP] Quick Dumb Question: Classes
Why don't you just make a little test script? That's what I do... :p
code:
<?php

class Something {
    var $property1 = 'property';
    function Something($sth, $blah) {
        if($blah == false) {
            $this->Something('test', true);
        }
        echo $this->property1;
        $this->property1 .= '2';
    }
}

$sth = new Something('test', false);
echo $sth->property1;

?>
That echoes "propertyproperty2property22" so I guess it works. :)

This post was edited on 11-01-2006 at 05:54 AM by WDZ.
11-01-2006 05:52 AM
Profile PM Web 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