|
|
#1 |
|
Junior Member
Join Date: Apr 2004
Location: Finland
Posts: 4
|
How to pass variables to MyFunction?
After hour of messing around with variables / searching forums / reading manual I found no way to pass a variable to custom function.. Is that true?? (guess not, I'm just being blind)
Like, code: Then in some section: code: And the DoYourThings-function receives "c:\temp\blahzor.txt" and some variable that can be accessed. Simple :P Of course that does not work, Call won't accept parameters. Also, I was not able to declare a changable variable as public, to do the same thing a harder way, like this: code: This does not work either, DoYourThings-function can't access SOMEVAR
|
|
|
|
|
|
#2 |
|
Major Dude
|
Defined variables are those which have only a "$" before its name:
PHP Code:
PHP Code:
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|