Page 1 of 1

function($x=$y)

Posted: Fri Aug 06, 2004 9:07 pm
by anotherJean
unfortunately this seems not to work

Code: Select all

function($x=$y) {...}
presetting variables in function not possible?

:?

Posted: Fri Aug 06, 2004 9:16 pm
by Joe
I dont think presetting variables in functions is possible at all. I think when you define them in the function you will have to declare the values within the function statement. Not too sure!

Posted: Fri Aug 06, 2004 9:40 pm
by anotherJean
thnx Joe,

yeah a simple condition will do this job, however I hate superfluousness.


damn function($x=$y) looks neat and would be perfect for my needs :cry:

Posted: Fri Aug 06, 2004 9:41 pm
by Joe
hehe, well at least there is loads of other advantages with programming out there. :D

Posted: Fri Aug 06, 2004 9:44 pm
by anotherJean
Joe wrote:hehe, well at least there is loads of other advantages with programming out there. :D
btw did you hacked ip reverse? :wink:

Posted: Fri Aug 06, 2004 9:48 pm
by Joe
hehe you remembered :D well im afraid I never due to me dedicating most of my time to more important things, like sitting here all day and helping others, lol