Re: [PHP] loosing var in class / function

2004-02-04 Thread Duncan Hill
On Wednesday 04 February 2004 17:52, Harry.de wrote: > How can i save a variable in a function? > The lower example doesn't work. > The var is always an empty string! > Anyone any solution? > > --- > > $some_var = "foobar"; > > require('something.php'

Re: [PHP] loosing var in class / function

2004-02-04 Thread John Nichel
Harry.de wrote: How can i save a variable in a function? The lower example doesn't work. The var is always an empty string! Anyone any solution? --- $some_var = "foobar"; require('something.php'); class SOMECLASS { function SomeFunction()

[PHP] loosing var in class / function

2004-02-04 Thread Harry.de
How can i save a variable in a function? The lower example doesn't work. The var is always an empty string! Anyone any solution? --- $some_var = "foobar"; require('something.php'); class SOMECLASS { function SomeFunction() { $this-