Which statement about the `static` variable keyword inside a function is correct?

PHP Intermediate Medium

PHP Intermediate — Medium

Which statement about the `static` variable keyword inside a function is correct?

Key points

  • Static variables persist across function calls
  • Initialization occurs only once
  • Scope remains local to the function

Ready to go further?

Related questions