Error Handling and Debugging
Error Handling and Debugging
• Debugging Techniques
o var_dump(): Displays structured
information about a variable, including its
type and value.
o print_r(): Prints human-readable
information about a variable, mainly
arrays and objects.
o error_reporting(): Adjusts the level of
error reporting in your script. For
example, you can set it to report all errors
during development.