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

    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 functions and for late static bindings. …

  2. PHP static Keyword - W3Schools

    Static properties and methods can be used without creating an instance of the class. The static keyword is also used to declare variables in a function which keep their value after the function has ended.

  3. 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 PHP code …

  4. 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.

  5. PHPStatic Properties - Online Tutorials Library

    The "static" keyword in PHP is used to define static properties and static methods in a PHP class. It may be noted that the static keyword is also used to define static variable, and static anonymous …

  6. PHP OOP Static Properties: A Complete Developer’s Guide

    Sep 29, 2025 · Static properties are a fundamental concept in PHP Object-Oriented Programming that can significantly improve your code’s efficiency and organization. Unlike regular instance properties, …

  7. 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

  8. PHP Static Methods and Properties

    In this tutorial, you will learn about PHP static methods and static properties, and understand the differences between the $this and self.