public function validate(&$arr)
  {
    if (count($this->list) == 0) {
      return true;
    }

    $ok = true;  

    foreach ($this->list as $key => $value) {
      $list = explode('.', $value);
      $ok = $ok && $this->walker($list, $arr);
    }

    return $ok;
  }
public function validate(&$arr)
  {
    if (count($this->list) == 0) {
      return true;
    }

    $ok = true;  

    foreach ($this->list as $key => $value) {
      $list = explode('.', $value);
      $ok = $ok && $this->walker($list, $arr);
    }

    return $ok;
  }
public function validate ( & $ arr ) { if ( count ( $ this -> list ) == 0 ) { return true ; } $ ok = true ; foreach ( $ this -> list as $ key => $ value ) { $ list = explode ( '.' , $ value ) ; $ ok = $ ok && $ this -> walker ( $ list , $ arr ) ; } return $ ok ; }
Tries to validate a hash list.
@param $arr array | The array to check.
@return bool
Tries to validate a hash list .