# Diference between 'private function' and 'private static function'?

**URL:** <https://forum.kirupa.com/t/diference-between-private-function-and-private-static-function/318879>\
**Category:** flash\
**Created:** [February 2, 2011, 4:54pm UTC](https://forum.kirupa.com/t/diference-between-private-function-and-private-static-function/318879 "2011-02-02T16:54:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubenFlash](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@RubenFlash](https://forum.kirupa.com/u/RubenFlash)\
**Post date:** [February 2, 2011, 4:54pm UTC](https://forum.kirupa.com/t/diference-between-private-function-and-private-static-function/318879/1 "2011-02-02T16:54:52Z")

</div>

Something that’s been bugging me - is there a difference between classifying a function ‘private’ or ‘private static’ in a singleton? It seems that they both do the same thing. Maybe some difference in performance?

```php

package {
    public final class MyStaticClass {
        public function MyStaticClass():void {
            throw Error('Static class!');
        }
        private static function doSomething():void {      
        }
        private function doSomething():void {      
        }
    }
}

```
