Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこのようなものが欲しいのですが、このような配列から動的に:
$array = array("first","second","third");
したがって、クラスは次のように呼び出されます。
$class = new class("first","second","third");
あなたはそれに反射を使うことができます:
$refClass = new ReflectionClass('SomeClass'); $instance = $refClass->newInstanceArgs($args);