Pastoid

The page you are looking at now is at this URL: http://pastoid.com/apg

This paste was last updated on February 24, 2009 at 6:44 pm.

Pasted Coderaw

class Klass {
  private $vars = array(
    'foo' => 'foodefault',
    'bar' => 'bardefault'
  );
 
  function __set($property, $value) {
    if ( array_key_exists( $property, self::vars ) ) {
      self::vars($property) = $value;
    }
  }
 
  function __get($property) {
    if ( array_key_exists( $property, self::vars ) ) {
      return self::vars($property);
    } else {
      return false;
    }
  }
}

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 5
search.live.com 2
Is this paste spam?
<Hide