Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP OOP - Static Methods

<?php
class greeting {
  public static function welcome() {
    echo "Hello World!";
  }
}

// Call static method
greeting
 
PREVIOUS NEXT
Tagged: #PHP #OOP #Static #Methods
ADD COMMENT
Topic
Name
2+8 =