PHP Magic Variables ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
yrt
Forum Newbie
Posts: 1
Joined: Sat May 25, 2002 5:35 pm

PHP Magic Variables ?

Post by yrt »

I am trying to find out where to get a list of magic variables in PHP, like __FILE__ and the like.

What I'm trying to find is if there is any predefined way to get the name of the current function I'm in or a stacktrace from inside PHP for debugging complex issues.

yrt
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

__LINE__ and __FILE__ are about it..

And nope...stack dumps are not yet possible in PHP.
Post Reply