variable - function question
Posted: Wed Apr 14, 2004 9:07 am
I have a function that ends with the echo of a number.
So if I call the function in my script, the visible result is a number.
I'm calling the function quite a lot and the output is everytime a different number.
No problem so far.
Now I need to do simple calculations with these outputted numbers.
How can I put them into a variable, so I can easily work with them?
Or how can I use the variable of the function in my script outside of the function?
So if I call the function in my script, the visible result is a number.
I'm calling the function quite a lot and the output is everytime a different number.
No problem so far.
Now I need to do simple calculations with these outputted numbers.
How can I put them into a variable, so I can easily work with them?
Or how can I use the variable of the function in my script outside of the function?