I\'ve got a few functions that deal with cookies. Would it be a horrible idea to group them by moving them to a class of their own and use them as static methods?
F
That would be a great way of organising your code, but why use static functions, just make a class for the required functionality.
Or as said above use namespaces, but I'm not particularly familiar with the pros/cons of them.
$cookie->get() is nicer to work with than cookie_get() in my opinion
$cookie->get()
cookie_get()