Answer the question
In order to leave comments, you need to log in
How to pass the contents of an array to the class constructor?
The class constructor accepts multidimensional arrays in the form:
$obj = new Class([
['data' => 'foo', 'data2' => 'bar']
], [
['data' => 'foo', 'data2' => 'bar']
]);
$array = ;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question