About 1,180,000 results
Open links in new tab
  1. PHP: Static Keyword - Manual

    Static Keyword ¶ Tip This page describes the use of the static keyword to define static methods and properties. static can also be used to define static variables, define static anonymous …

  2. PHP static Keyword - W3Schools

    Definition and Usage The static keyword is used to declare properties and methods of a class as static. Static properties and methods can be used without creating an instance of the class. …

  3. PHP Static Variables - Online Tutorials Library

    Scope can be defined as the range of availability a variable has to the program in which it is declared. PHP variables can be one of four scope types − Local Variables Global Variables …

  4. Static - W3docs

    In PHP, the "static" keyword is used to define class-level properties and methods that can be accessed without instantiating an object of the class. In this

  5. PHP static Keyword - Static Properties and Methods in PHP

    Apr 16, 2025 · PHP static keyword tutorial shows how to use static properties and methods in PHP. Learn static with practical examples.

  6. Exploring Static Variable in PHP - DEV Community

    Apr 29, 2025 · Have you ever needed a shared memory drawer in PHP — a place where your data stays accessible between function calls without polluting the global scope? Welcome to …

  7. Static variables in PHP - Stack Overflow

    Sep 22, 2011 · Does PHP allow a static variable at top level, outside of a function? This would be a way to make a global variable that is easy to use. Or must all static variables be declared …

  8. Static Function in PHP - GeeksforGeeks

    Jul 11, 2025 · PHP static methods are most typically used in classes containing static methods only often called utility classes of PHP frameworks like Laravel and CakePHP. Below is the …