Function __global->get_class

Definitions

sources_custom/phpstub.php

  • Returns the name of the class of an object.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$obj object No No required parameter N/A N/A The object

Returns

  • The class name
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Returns the name of the class of an object.
 *
 * @param  object $obj The object
 * @return string The class name
 */

function get_class(object $obj) : string