html - How do I incorporate the line number of php source code in a custom error message? -


i want proper error generator when i'm programming (html + php). how can take line, when have error, , put in variable?

example :

echo " error # 03: variable undefined line #".$line." ";

thanks.

the variables you'd looking are:

__line__ __file__ __function__ __class__ 

Comments

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -