PHP डिबग_प्रिंट_बैकट्रेस () फ़ंक्शन
उदाहरण
एक PHP बैकट्रैक प्रिंट करें:
<?php
function a($txt) {
b("Glenn");
}
function b($txt) {
c("Cleveland");
}
function c($txt) {
debug_print_backtrace();
}
a("Peter");
?>
परिभाषा और उपयोग
डीबग_प्रिंट_बैकट्रेस () फ़ंक्शन एक PHP बैकट्रेस प्रिंट करता है।
यह फ़ंक्शन उस कोड से डेटा प्रदर्शित करता है जो डिबग_प्रिंट_बैकट्रेस () फ़ंक्शन तक ले जाता है।
वाक्य - विन्यास
debug_print_backtrace(options, limit);
पैरामीटर मान
Parameter | Description |
---|---|
options | Optional. Specifies a bitmask for the following option: DEBUG_BACKTRACE_IGNORE_ARGS (Whether or not to omit the "args" index, and all the function/method arguments, to save memory) |
limit | Optional. Limits the number of stack frames printed. By default (limit=0) it prints all stack frames |
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | कोई नहीं |
---|---|
पीएचपी संस्करण: | 5.0+ |
पीएचपी चेंजलॉग: | PHP 5.4: वैकल्पिक पैरामीटर सीमा जोड़ी गई थी PHP 5.3.6: वैकल्पिक पैरामीटर विकल्प जोड़ा गया था |
पीएचपी त्रुटि संदर्भ