Re: [PHP] object as function argument

2005-10-11 Thread Jasper Bryant-Greene
Björn Bartels wrote: myab ths a stupid question, but i didn't find anything inside the php docs: is it possibe to pass an object (like $foo = new myObject(); ) to a function as its argument (like my_func($foo); ) Yes, but if you're using PHP 4 you may want to define the function as taking tha

[PHP] object as function argument

2005-10-11 Thread Björn Bartels
Hello there, myab ths a stupid question, but i didn't find anything inside the php docs: is it possibe to pass an object (like $foo = new myObject(); ) to a function as its argument (like my_func($foo); ) thanx a lot Björn Bartels -Development/IT-Services- -