Search Results

  1. Preface Function Reference Variable and Type Related Extensions Reflection ReflectionClass Change language:

    • getMethod

      Gets a ReflectionMethod for a class method

    • getProperties

      Changelog ¶ ... Examples ¶ Example #1...

    • getProperty

      Gets a ReflectionProperty for a class's property Accessing...

    • hasMethod

      ReflectionClass::hasMethod (PHP 5 >= 5.1.2, PHP 7, PHP 8)...

    • getDocComment

      Note that \ReflectionClass::getDocComment() ignores all...

    • isSubclassOf

      Parameters ¶ class Either the name of the class as string or...

    • getConstants

      Parameters ¶ filter The optional filter, for filtering...

    • getMethods

      ReflectionClass::getMethods() sorts the methods by class...

  2. Nov 11, 2013 · Specifically, you can use the ReflectionClass::getShortName method, which gets the name of the class without its namespace. First, you need to build a ReflectionClass instance, and then call the getShortName method of that instance:

  3. Dec 17, 2019 · The Reflection::getShortName () function is an inbuilt function in PHP which is used to return the short name of the specified class, the part without the namespace. Syntax: string Reflection::getShortName( void ) Parameters: This function does not accept any parameters.

  4. Aug 21, 2025 · The getShortName() function is a method of the ReflectionClass class. Its primary purpose is to return the short name of a class, which is essentially the class name without its namespace.

  5. Sep 7, 2025 · ReflectionClass::getShortName (PHP 5 >= 5.3.0, PHP 7, PHP 8) ReflectionClass::getShortName — Gets short name

  6. PHP Manual Gets the short name of the class, the part without the namespace.

  7. People also ask

  8. ReflectionClass::isInterface — Checks if the class is an interface ReflectionClass::isInternal — Checks if class is defined internally by an extension, or the core