Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6161863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:33:05+00:00 2026-05-23T21:33:05+00:00

Possible Duplicate: PHP: The Reflection API – Great Addition To PHP With Little Use

  • 0

Possible Duplicate:
PHP: The Reflection API – Great Addition To PHP With Little Use

Finding documentation is one problem, but the quality of documentation is another, equally important, problem. Most developers know the value of accurately commented code, but when i am in the middle of coding, the meaning of your code always seems crystal clear, so comments appear superfluous. Besides, there’s always the ultimate excuse for the absence of internal documentation—i want to keep file size small to reduce download time.

This is often the situation with internal documentation, but external documentation fares no better. It doesn’t make sense to write it as i go because things always change, but, by the time i’ve finished coding, documentation is the furthest thing from my mind.

However: I searched in google and I found a solution called Reflection Classes Could any one describe it briefly plz ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T21:33:06+00:00Added an answer on May 23, 2026 at 9:33 pm

    Excerpt from the book Object-oriented PHP: concepts, techniques, and code
    By Peter Lavin
    :

    This group of classes was created for the express purpose of introspecting other classes. These classes
    make it possible to examine the properties of other classes by retrieving metadata
    about classes; you can even use them to examine the reflection classes themselves.

    Reflection provides information about the modifiers of a class or interface—whether that class is final or static, for example.

    It can also reveal all the methods and data members of a class and all the modifiers applied to them.

    Parameters passed to methods can also be introspected and the names of variables exposed. Through reflection it is possible to automate the documentation of built-in classes or user-defined
    classes.

    It turns out that the central repository of information about classes was right in front of us all the time. PHP can tell us all about itself through the mirror of the reflection classes.

    The reflection group of classes or Application Programming Interface (API) is made up of a number of different classes and one

    interface, shown here:

    class Reflection
    interface Reflector
    class ReflectionException extends Exception
    class ReflectionFunction implements Reflector
    class ReflectionParameter implements Reflector
    class ReflectionMethod extends ReflectionFunction
    class ReflectionClass implements Reflector
    class ReflectionObject extends ReflectionClass
    class ReflectionProperty implements Reflector
    class ReflectionExtension implements Reflector
    

    Look at this list, there is actually no class ancestor common to all reflection classes. On the other hand, the Reflector interface is shared by all classes except Reflection and ReflectionException.
    ReflectionMethod extendsReflectionFunction, ReflectionObject extends ReflectionClass, and ReflectionException extends Exception.

    ReflectionObject shares all the methods of ReflectionClass; the only difference between these classes is that ReflectionObject takes a class instance rather than a class name as a parameter—using an instance, you can introspect a class without knowing anything about it, even its name.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: PHP Linkify Links In Content I've got a little stuck with finding
Possible Duplicate: PHP class instantiation. To use or not to use the parenthesis? I'm
Possible Duplicate: PHP EOF shows only one result from loop Hello Seems like I
Possible Duplicate: PHP Integer Problem 1.0000241703257e+14 how to convert it in PHP, it was
Possible Duplicate: php warning mysql_fetch_assoc I have a weird problem about my script. It
Possible Duplicate: PHP: Opening/closing tags & performance? this is probably a stupid question, but
Possible Duplicate: PHP Round function - round up to 2 dp? What my problem
Possible Duplicate: Php: remove all tags, but “a href” in a text Is there
Possible Duplicate: PHP detecting request type (GET, POST, PUT or DELETE) This should be
Possible Duplicate: php multi-dimensional array remove duplicate I have an array like this: $a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.