Classes vers. Functions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Winston Smith

    Classes vers. Functions

    Hi,
    PHP newbie here...

    I've been using static class functions as a means of grouping certain
    functions together (e.g. class::function () ). Anybody know if this
    carries a performance overhead beoynd the simple function outside a
    class?


    Thanks,
    Rune
  • Louis-Philippe Huberdeau

    #2
    Re: Classes vers. Functions

    It sure does, but by very little. Sometimes you need to sacrifice a
    little performence to increase usability.

    Winston Smith wrote:[color=blue]
    > Hi,
    > PHP newbie here...
    >
    > I've been using static class functions as a means of grouping certain
    > functions together (e.g. class::function () ). Anybody know if this
    > carries a performance overhead beoynd the simple function outside a
    > class?
    >
    >
    > Thanks,
    > Rune[/color]

    Comment

    Working...