title: Warning: Missing 1 argument
body: <p>Any idea why I get this error:</p>
  
  <pre><code>Warning: Missing argument 1 for person::__construct(), called in /home/fishbein/public_html/dev/OOP/index.php on line 5 and defined in /home/fishbein/public_html/dev/OOP/class_lib.php on line 6
  
  Warning: Missing argument 1 for person::__construct(), called in /home/fishbein/public_html/dev/OOP/index.php on line 6 and defined in /home/fishbein/public_html/dev/OOP/class_lib.php on line 6
  </code></pre>
  
  <p>With this code:</p>
  
  <pre><code>&lt;?
      class person {
  
              var $name;
  
              function __construct($persons_name) {       
              $this-&gt;name = $persons_name;        
              }
  
              function set_name($new_name) {
                  $this-&gt;name = $new_name;
              }
  
              function get_name() {
                  return $this-&gt;name;
              }
  
      }
  ?&gt;
  </code></pre>
  
  <p>I'm also using this in my index file:</p>
  
  <pre><code>$tyler = new person("Tyler");
  </code></pre>