Skip to content
WJunction - Webmaster Forum

Lets create a crowd sourced PHP Class

Status
Not open for further replies.

timtamboy63

Experienced Member
885
2009
0
Similiar to the *everyone joins in* PHP App, but it'd be cool if this class was actually useful:

I'll start
PHP:
class WJunction{
      public function __construct(){
      }

}
 

4 comments

PHP:
class WJunction
{
    function __construct()
    {
        if($user!=="SplitIce"){
            echo 'I am not good in OO php';
        } else {
            echo 'PHP Never lies.';
        }
    }
}

$wj = new WJunction();
 
PHP:
class WJunction
{
    public $user;
    public $fly;
    function __construct($user)
    {
        if($user!="SplitIce"){
            echo 'I am not good in OO php';
            $this->user = $user;
            return true;

        } else {
            echo 'PHP Never lies.';
            $this->user = $user;
            return false;
        }
    }
    function isFly(){
        if($this->user=='timtamboy63'){
             $this->fly = true;
            return true;
         }
         else{
            $this->fly = false;
            return false;
         }
}

$wj = new WJunction('timtamboy63');
print $wj->user;
 
Status
Not open for further replies.

About the author

T
Experienced Member · Joined
Picked up photoshop about half a year ago. Now i do graphics design :) Graphics/Web Design
885
Messages
0
Reactions
16
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom