Skip to content

Instantly share code, notes, and snippets.

@aerith
Created April 6, 2011 02:53
Show Gist options
  • Save aerith/905044 to your computer and use it in GitHub Desktop.
Save aerith/905044 to your computer and use it in GitHub Desktop.
public function rule_hoge (String $value) {
if (empty($value)) return false;
if (mb_strlen($value) < 100) return false;
if (preg_match('/fuga/', $value)) return false;
if (!$this->isFoo($value)) return false;
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment