Quiz: Using the $this Keyword for Chaining Methods and Properties

Test your understanding of the $this keyword in PHP.

Let’s practice what we have just learned

1

Which keyword can be used to approach class properties and methods from within the class?

A)

The new keyword.

B)

The class keyword.

C)

The $this keyword.

Question 1 of 60 attempted

Get hands-on with 1400+ tech skills courses.