hphp_create_object

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

function hphp_create_object(
  string $name,
  array $params,
): object;

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