class IMessge - returns user message types | loop similar items
Well, you are doing this a little redundantly...

$keys = array(
    'name',
    'email',
    //etc...
);

$messages = array(
    'PASS' =&gt; $this-&gt;PASS,
);

foreach( $keys AS $key ) { $messages[ $key ] = $this-&gt;FAIL . $key; }

$this-&gt;messages = $messages;


Also, your get function has a fatal error. You currently have a check to see if a key exists, and if it doesn't it will output an error message. This is incomplete, if that key doesn't exist it will output the error message then PHP will throw an undefined index error because $key does not exist. To avoid this you should have it return that error message when you set it or have it return FALSE. I think such a check is good, since it seems you are dealing with user supplied information. If this was a private method and you knew the information you were passing it was reliable, then I would say its unnecessary.