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<T>(
  string $class_name,
  array $params,
): T;

Parameters

  • string $class_name
  • array $params - The parameters to pass to the constructor.

Return Values

  • object - - The newly created object