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 7995289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:21:58+00:00 2026-06-04T14:21:58+00:00

While working in a project written by some one else ,there’s a Function which

  • 0

While working in a project written by some one else ,there’s a Function which retrieves some Data’s and it’s return is the Array with Data.

function getSomedata()
{
     //Get some data
     return Array();
}

And on the code this function is tested in many Places as

if(getSomedata())
  getSomedata();

Without editing every piece of code ,can i get notified from php if that Function is called from an IF Statement and return a Boolean instead of the Array with Data.

  • 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-06-04T14:22:01+00:00Added an answer on June 4, 2026 at 2:22 pm

    Theoretically, you could use backtracing to figure out which code called a piece of code and read and introspect the code to figure out if the function was called in an if statement. But I’m not even going to go into the details of how to do this, because it’s utter madness.

    if (function()) function() is an anti-pattern, broken code, bad, bad, bad. You need to fix this misuse instead of fighting it with more madness. If that’s used in a lot of places, bite the bullet and fix it once instead of having to deal with it forever.

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

Sidebar

Related Questions

While working a project tonight, I ended up using one .js resource file for
I got some path while working on a project but not able to figure
While working on one ASP.NET project hosted within web farm including two front ends
While working on a project i came across a functionality in which i need
I'm working on a game project and I've written some basic code that allows
I've got a relatively small project written in ASP.NET MVC3. After working a while,
While working on an Xcode project i keep getting the spinning wheel while switching
while working on a school project i ran into a problem using javascript to
While working on an AppEngine connected Android project, I occasionally have problems with RequestFactory
While writing a login system for a web project Im working on I came

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.