Hi,
I have a string as followed:
"4" is an argument, "8" is another argument, both to be passed to an object whose constructor expects two arguments.PHP Code:$a = '4,8';
How can I achieve this at instantiation level? The object thinks there is one argument "4,8".PHP Code:$obj = new Obj($a);
There is one no-no: I don't want to touch the class using the two arguments.
Regards,
-jj.![]()










Bookmarks