hphp_create_object

Description

function hphp_create_object(
  string $name,
  ?array $params,
): T

hphp_create_object() - Used by ReflectionClass to create a new instance of an object, including calling the constructor.

Parameters

  • string $name - The name of the object to create.
  • array $params - The parameters to pass to the constructor.

Return Values

  • object - - The newly created object