PHP: Included function versus call to a static function. Is one better than the other?

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-05-10T02:07:56Z Indexed on 2010/05/10 2:18 UTC
Read the original article Hit count: 282

Filed under:

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.');

© Stack Overflow or respective owner

Related posts about php