Skip to content

Instantly share code, notes, and snippets.

@tobiastom
Created November 9, 2009 21:29
Show Gist options
  • Save tobiastom/230291 to your computer and use it in GitHub Desktop.
Save tobiastom/230291 to your computer and use it in GitHub Desktop.
<?php
$obj1 = new Object1();
$obj2 = new Object2();
$errors = null;
if($obj1->validate($value, $error)) {
echo "fehler1";
}
// ganz viel anderer code
if($obj2->validate($value, $error)) {
echo "fehler2";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment