# Function not working

**URL:** <https://forum.kirupa.com/t/function-not-working/221190>\
**Category:** Uncategorized\
**Created:** [April 2, 2007, 11:28am UTC](https://forum.kirupa.com/t/function-not-working/221190 "2007-04-02T11:28:38Z")\
**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:** [April 2, 2007, 11:28am UTC](https://forum.kirupa.com/t/function-not-working/221190/1 "2007-04-02T11:28:38Z")

</div>

Hello good people! 🍺

Is this right?

```php

function something(){
   //code
}

mc.onRelease = function(){
   something();
}
 

```

or is it like this?

```php
 
something = function(){
   //code
}

mc.onRelease = something;

```

Thanks!
