Debugging in PHP
Debugging in PHP - Important Points
16. | What is the difference between the var_dump() and print_r() functions in PHP? |
---|
A. There is no difference, they are synonyms
B. var_dump() displays the type and value of a variable, print_r() only displays the value
C. print_r() displays the type and value of a variable, var_dump() only displays the value
D. None of the above
View Answer Discuss Work SpaceAnswer: option b
Explanation:
17. | What is the purpose of the function set_time_limit() in PHP? |
---|
A. To turn off error reporting
B. To set the maximum execution time for a script
C. To display all errors
D. To stop the execution of the script on an error
View Answer Discuss Work SpaceAnswer: option b
Explanation:
18. | What is the purpose of the function ini_get() in PHP? |
---|
A. To set the value of a configuration option
B. To turn off error reporting
C. To get the value of a configuration option
D. To stop the execution of the script on an error
View Answer Discuss Work SpaceAnswer: option c
Explanation:
19. | What is the purpose of the function error_clear_last() in PHP? |
---|
A. To clear the last error that occurred in the script
B. To clear the last warning that occurred in the script
C. To clear the last notice that occurred in the script
D. None of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
20. | What is the purpose of the function debug_backtrace() in PHP? |
---|
A. To display a list of all variables in the current scope
B. To display the current error message
C. To display the current stack trace
D. None of the above
View Answer Discuss Work SpaceAnswer: option c
Explanation: