I have a message class that I use like so:
RedirectMsg::go('somepage.php', MessageType::ERROR, 'Your message here.');
Would it be better to use a regular function? Or is this a personal preference issue?
redirectMsg('somepage.php', MessageType::ERROR, 'Your message here.');
ObjectsClasses help provide asudopseudo-namespace for functions so that they don’t overlap, which can be very helpful. Have a large number of functions in the global namespace is a naming disaster waiting to happen. If you’re using PHP 5.3 you might want to look into namespaces.