Forum

What is static clas...
 
Notifications
Clear all

What is static class and method in PHP?


(@elias)
Illustrious Member
Joined: 5 months ago
Posts: 4277
Topic starter  

What is static class and method in PHP?


   
Quote
(@elias)
Illustrious Member
Joined: 5 months ago
Posts: 4277
Topic starter  

What is static class and method in PHP?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. The static keyword is also used to declare variables in a function which keep their value after the function has ended.


   
ReplyQuote
Share: