Take the sum of a variable
Hello,
I want to ask how to take the value of a variable, example: PHP Code:
PHP Code:
|
Re: Take the sum of a variable
One of the easiest ways is to create the variable globally, so it is accessible in any function.
|
Re: Take the sum of a variable
What do you mean?
Can you show a example? |
Re: Take the sum of a variable
Quote:
PHP Code:
|
Re: Take the sum of a variable
Ideea it's that my variable it's like this:
PHP Code:
|
Re: Take the sum of a variable
Quote:
This is 'hello world' level stuff, I would do some more learning because you are going to have issues left and right until you understand the basic concepts. Code:
If you do not need the variable to be accessed by the entire plugin, you can instead declare it locally and pass it to another function so it can be used. PHP Code:
|
| All times are GMT -4. The time now is 14:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.