title: Var_dump doesnt work
body: <p>In this simple class i want for example var_dump the rule. But this doesnt work.
  Does anyone have an idea?</p>
  
  <p>Ok, i have made some changes. It gives back after a post true or false. It works. Is this code the good way of OOP? </p>
  
  <pre><code>class Forms_FormsValidation {
  
  private $_required;
  private $_minLength;
  private $_maxLength;
  private $_alphaNumeric;
  private $_errors;
  
  public function __construct($validate, $posts) {
      array_pop($posts);
      foreach ($validate as $arraykey =&gt; $value) {            
          foreach ($value as $key =&gt; $values) {
              if (method_exists($this, "set$key")) {                    
                  $set = 'set'.ucfirst($key);
                  $get = 'get'.ucfirst($key);
                  $this-&gt;$set($posts["$arraykey"], $values);
                  if( $this-&gt;$get() != '') {
                      $this-&gt;_errors[$arraykey] .= $this-&gt;$get();
                  }                    
              }
          }
      }          
  }
  
  public function setValidation(){
      if ( empty($this-&gt;_errors) ){return TRUE;}return FALSE;
  }
  public function getRequired() {
      return $this-&gt;_required;
  }
  
  public function setRequired($value, $ruleValue) {
      if (empty($value) &amp;&amp; $ruleValue == TRUE) {
          $this-&gt;_required = 'newwwwwwwwww this field is required';
      }
  }
  
  public function getMinLength() {
      return $this-&gt;_minLength;
  }
  
  public function setMinLength($value, $ruleValue) {
      if (strlen($value) &lt; $ruleValue) {
          $this-&gt;_minLength = 'must be longer than' . $ruleValue . '';
      }
  }
  
  public function getMaxLength() {
      return $this-&gt;_maxLength;
  }
  
  public function setMaxLength($value, $ruleValue) {
      if (strlen($value) &gt; $ruleValue) {
          $this-&gt;_maxLength = 'must be shorter than' . $ruleValue . '';
      }
  }
  
  public function getAlphaNumeric() {
      return $this-&gt;_alphaNumeric;
  }
  
  public function setAlphaNumeric($value, $ruleValue) {
      if (!preg_match('/^([a-z0-9])+$/i', $value)) {
          $this-&gt;_alphaNumeric = 'can only contain letters and numbers';
      }
  }
  
  }
  
  $validateUser       = array( 'user' =&gt; array ( 'required' =&gt; TRUE, 'minLength' =&gt; 2,'maxLength' =&gt; 15, 'alphaNumeric' =&gt; TRUE ));
  $validatePassword   = array( 'password' =&gt; array ( 'required' =&gt; TRUE, 'minLength' =&gt; 2,'maxLength' =&gt; 15, 'alphaNumeric' =&gt; TRUE ));
  $_POST = array_map('strip_tags', $_POST);
  $formsValidation = new Forms_FormsValidation($validateUser, $_POST); 
  $formsValidation = new Forms_FormsValidation($validatePassword, $_POST); 
  if ( $formsValidation-&gt;setValidation() === TRUE ) {echo 'TRUE';}
  </code></pre>