Jump to content

Can I find out, which function called my second function?


SEFE

Recommended Posts

<?php

function fun1(){

echo "Called a function 1";

}

function fun2(){

fun1();

}

fun2();

?>

 

--------------------------

if Functions are in class

<?php

function fun1(){

echo "Called a function 1";

}

function fun2(){

$this->fun1();}

obj->fun2();

?>

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.