Raised This Month: $ Target: $400
 0% 

Transfer variables from one function to another


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 07-06-2010 , 21:53   Transfer variables from one function to another
Reply With Quote #1

I think this question is kinda dumb and maybe its already asked somewhere.
I came across this problem many times before and because of my lack of knowledge i couldnt go over it.So I'm asking now how is it possible.
PHP Code:
public asd()
{
if(
smth == 1)
{
a++
}
public 
adf()
{
if(
== 2// line X
{
...

Of course on line X it will bring up error for undefined symbol and if i define it in adf() it will not have the same value as asd().
If i define it out of the both functions, again it will ot have the same value.

Last edited by SpeeDeeR; 07-07-2010 at 05:34.
SpeeDeeR is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode