Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP OOP - Static Properties

<?php
class pi {
  public static $value = 3.14159;
}

// Get static property
echo pi::$value;
?>
 
PREVIOUS NEXT
Tagged: #PHP #OOP #Static #Properties
ADD COMMENT
Topic
Name
7+5 =