echo "current line number: " . __LINE__ . "<br />";
echo "full path and filename: " . __FILE__ . "<br />";
echo "directory of the file: " . __DIR__ . "<br />";
echo "directory of the file: " . dirname(__FILE__) . "<br />";
echo "current function name :" . __FUNCTION__ . "<br />";
echo "class name: " . __CLASS__ . "<br />";
echo "trait name includes the namespace it was declared: " . __TRAIT__ . "<br />";
echo "class method name: " . __METHOD__ . "<br />";
echo "current namespace name: " . __NAMESPACE__ . "<br />";
/*
run:
current line number: 8
full path and filename: C:\xampp\htdocs\answersmind.com\test.php
directory of the file: C:\xampp\htdocs\answersmind.com
directory of the file: C:\xampp\htdocs\answersmind.com
current function name :
class name:
trait name includes the namespace it was declared:
class method name:
current namespace name:
*/