ReflectionClass::newInstance 指定した引数でクラスの新しいインスタンスを作成する &reftitle.description; public objectReflectionClass::newInstance mixedargs クラスの新しいインスタンスを作成します。指定した引数をクラスのコンストラクタに渡します。 &reftitle.parameters; args 可変長の引数を受け付け、それを call_user_func と同じ方式でクラスのコンストラクタに渡します。 &reftitle.returnvalues; &reftitle.errors; コンストラクタが public でない場合は ReflectionException が発生します。 クラスにコンストラクタがないときに args を指定すると ReflectionException が発生します。 &reftitle.seealso; ReflectionClass::newInstanceArgs ReflectionClass::newInstanceWithoutConstructor