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?
variable - function question
Moderator: General Moderators
-
magicrobotmonkey
- Forum Regular
- Posts: 888
- Joined: Sun Mar 21, 2004 1:09 pm
- Location: Cambridge, MA