Menu
Hi
I have a class where the passed variable has to be an array because I don’t know the number of variables sent to the class:
[code=php]
$object = new class;
$object->classarray = array($var1, $var2, $var3);
Is it possible to get rid of the array passed to the class?
Something like this:
[code=php]
$object = new class;
$object->classarray = ($var1, $var2, $var3);
And then “convert” the [I]classarray