ReflectionClass::newInstanceArgs

( excerpt from http://php

Description

public function newInstanceArgs(
  $args = array(),
);

net/manual/en/reflectionclass.newinstanceargs.php )

Creates a new instance of the class, the given arguments are passed to the class constructor.

Parameters

  • $args = array()

Return Values

  • mixed - Returns a new instance of the class.