Home > 2013, ajax, balt., Nation, News, OFFER, Open-source, pagination, PHP > Get line number of the code

Get line number of the code

<!--?
class myTest
{
function addMyAddress($street)
{
echo "
In class function at:".__LINE__;
echo "
class function called from:";
$e = new Exception();
$trace = $e->getTrace();
echo '
';print_r($trace);
// OR print_r(debug_backtrace());
}
}
echo "
Class created at:".__LINE__; $obj = new myTest();
echo "
Function called at:".__LINE__; $obj->addMyAddress('A/13 Skyline');
?>

 

  1. July 17, 2013 at 11:45 PM

    Hey there! I simply wish to offer you a big thumbs up for your
    excellent information you have got here on this
    post. I’ll be returning to your web site for more soon.

  2. July 29, 2013 at 7:16 AM

    I love the data on your web site. Many thanks!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: