array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'reflectionclass.newinstancewithoutconstructor.php', 1 => 'ReflectionClass::newInstanceWithoutConstructor', 2 => 'Creates a new class instance without invoking the constructor', ), 'up' => array ( 0 => 'class.reflectionclass.php', 1 => 'ReflectionClass', ), 'prev' => array ( 0 => 'reflectionclass.newinstanceargs.php', 1 => 'ReflectionClass::newInstanceArgs', ), 'next' => array ( 0 => 'reflectionclass.newlazyghost.php', 1 => 'ReflectionClass::newLazyGhost', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/reflection/reflectionclass/newinstancewithoutconstructor.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 5 >= 5.4.0, PHP 7, PHP 8)
ReflectionClass::newInstanceWithoutConstructor — Creates a new class instance without invoking the constructor
Creates a new instance of the class without invoking the constructor.
A ReflectionException if the class is an internal class that cannot be instantiated without invoking the constructor. This exception is limited only to internal classes that are final.