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

  • SEARCH
  • Home
  • 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 3211888
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:46:52+00:00 2026-05-17T14:46:52+00:00

In PHP, get_included_files() returns an array with the names of included files. In a

  • 0

In PHP, get_included_files() returns an array with the names of included files.

In a similar fashion, is there any way to get an array with the names of called functions with parameters?

  • 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-17T14:46:52+00:00Added an answer on May 17, 2026 at 2:46 pm

    I was trying to achieve what you want and finally came up with an reasonable solution.

    Make a class named Debug and include that above every file you want to debug in. Build yourself a function that prints nicely the information stored in $calls.

    class Debug {
        private static $calls;
    
        public static function log($message = null)
        {
            if(!is_array(self::$calls))
                self::$calls = array();
    
            $call = debug_backtrace(false);
            $call = (isset($call[1]))?$call[1]:$call[0];
    
            $call['message'] = $message;
            array_push(self::$calls, $call);
        }
    }
    

    Call this function everytime you declare a function first line in the functionbody: Debug::log($message(optional) )

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

Sidebar

Related Questions

Possible Duplicate: get name of current PHP script in include file Can an included
Given a class class RandomName extends CommonAppBase {} is there any way to automatically
With include('basemodel.php'); I get Fatal error: Class 'BaseModel' not found in C:\xampp\htdocs\allsides\account\model.php on line
I want to do some innerHTML replacements, but using PHP includes, I dont get
I have a multiple language website, and I use a php get variable to
With php file_get_contents() i want just only the post and image. But it's get
Im using this PHP to get a list of Title's from an RSS feed:
I can't get PHP to recognize the ImageMagick (Imagick) class. Everything else works, the
I have an HTML form POSTing to the following index.php: <?php require_once(/home/full/path/to/included/file.php); ?> And
I have the following php. However when I see the index.php I get the

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.