Jump to content

Possible to check if a function has been called?


The Bat

Recommended Posts

Uh, why would you want to do that? But I guess you can do this:

 

<?php

function toCheck(){
   define("CHECKED", 1);
   // codes here
}

function checkFunction(){
   if (defined("CHECKED")){
      // the function toChecked() has been executed and now write your codes
   }
}

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.