Examining the state of your PHP code

6 Views
Published
When you're debugging PHP code, it can be helpful to examine the state of your code at a specific point in time.

Let's look at some ways you can examine the state of your PHP code using built-in PHP functions.
---
View this lesson and others in this course on Learn WordPress:
https://learn.wordpress.org/course/beginner-wordpress-developer/

0:00 Introduction
0:20 Using error_log()
1:30 Using print_r()
2:27 Using var_dump()
3:33 Further reading
Category
WordPress
Tags
2024, Learn WordPress, WordPress.tv
Be the first to comment