# A function Question

**URL:** <https://forum.kirupa.com/t/a-function-question/130225>\
**Category:** Uncategorized\
**Created:** [December 2, 2004, 4:22pm UTC](https://forum.kirupa.com/t/a-function-question/130225 "2004-12-02T16:22:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![moja](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@moja](https://forum.kirupa.com/u/moja)\
**Post date:** [December 2, 2004, 4:22pm UTC](https://forum.kirupa.com/t/a-function-question/130225/1 "2004-12-02T16:22:44Z")

</div>

how to make a function that will not lose the values of the variable before calling it and will not lose them after it is finished.

example.

```php
 
a= 2; 
b=3;
go();
trace(c);
 
function go (){
 
c= a * b ;
return;
} 

```
