Which statement accurately describes the behavior of the `static` keyword inside a class method?

PHP Intermediate Hard

PHP Intermediate — Hard

Which statement accurately describes the behavior of the `static` keyword inside a class method?

Key points

  • Static variables are initialized only once
  • Persistence occurs across function invocations
  • Scope remains local to the function

Ready to go further?

Related questions